Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

Upon login, authenticate user based on type #34

@bethgrace5

Description

@bethgrace5

Upon login, determine the type of user.

  • case that user is a client:
    date of last login is null -> force to change password
    date of last login is not null -> allow login
  • case that user is a contractor:
    have github authenticate password based on username
  • case that user does not exist
    check github for authentication of username/password combo -> add user to database if authenticated
    if not github user, display error that client does not have account, or github user info incorrect

Possibly:
in LoginAction.login()
if user does not exist, check if they exist as github user. if so, add them to Database as new contractor.
get user by their userName only instead of username and password.
check type of user.
if client user then check that supplied password = user.getPassword()
if contractor user then call new method authenticateByGithub()
if does not exist, then if authenticated by github, add new user as contractor- get info from github.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions