In password recovery, don't reveal whether an e-mail address is valid (unless it is an org's e-mail address)
This commit is contained in:
parent
4a5626e64b
commit
927d469db0
3 changed files with 8 additions and 6 deletions
|
@ -829,7 +829,9 @@ class Recovery(ApiResource):
|
|||
email = request.get_json()['email']
|
||||
user = model.user.find_user_by_email(email)
|
||||
if not user:
|
||||
raise model.InvalidEmailAddressException('Email address was not found.')
|
||||
return {
|
||||
'status': 'sent',
|
||||
}
|
||||
|
||||
if user.organization:
|
||||
send_org_recovery_email(user, model.organization.get_admin_users(user))
|
||||
|
|
Reference in a new issue