Allow for email address-based login
This commit is contained in:
parent
9d26c79db0
commit
e5f6a68248
2 changed files with 4 additions and 5 deletions
|
@ -312,12 +312,11 @@ def signin_user():
|
|||
return conduct_signin(username, password)
|
||||
|
||||
|
||||
def conduct_signin(username, password):
|
||||
#TODO Allow email login
|
||||
def conduct_signin(username_or_email, password):
|
||||
needs_email_verification = False
|
||||
invalid_credentials = False
|
||||
|
||||
verified = model.verify_user(username, password)
|
||||
verified = model.verify_user(username_or_email, password)
|
||||
if verified:
|
||||
if common_login(verified):
|
||||
return make_response('Success', 200)
|
||||
|
|
Reference in a new issue