Send reset email when email value

Send email when get email value

committer: Sharoon Thomas <sharoon.thomas@openlabs.co.in>
This commit is contained in:
Raimon Esteve 2013-07-04 19:24:45 +05:00
parent 23b721ff75
commit 12d027b574
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ class NereidUser(ModelSQL, ModelView):
('company', '=', request.nereid_website.company.id),
])
if not user_ids:
if not user_ids or not request.form['email']:
flash(_('Invalid email address'))
return render_template('reset-password.jinja')