parent
16f16e8a15
commit
31a8a0fba4
7 changed files with 76 additions and 11 deletions
|
@ -402,7 +402,7 @@ def create_reset_password_email_code(email):
|
|||
try:
|
||||
user = User.get(User.email == email)
|
||||
except User.DoesNotExist:
|
||||
raise InvalidEmailAddressException('Email address was not found.');
|
||||
raise InvalidEmailAddressException('Email address was not found.')
|
||||
|
||||
if user.organization:
|
||||
raise InvalidEmailAddressException('Organizations can not have passwords.')
|
||||
|
|
Reference in a new issue