You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 24, 2021. It is now read-only.
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.
Upon login, determine the type of user.
date of last login is null -> force to change password
date of last login is not null -> allow login
have github authenticate password based on username
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.