password: fix emails sent after generating a new password (#1801)
This commit is contained in:
parent
3ad2e905c5
commit
e171274e36
|
@ -1036,7 +1036,7 @@ class MethodUserDirectory(Directory):
|
|||
def email_submit(self, form):
|
||||
method = form.get_widget('method').parse()
|
||||
email_key = 'password-email-%s' % method
|
||||
if method == 'create':
|
||||
if method == 'create-anew':
|
||||
password = make_password()
|
||||
self.account.set_password(password)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue