[lost_password] when a new password is generated state it in the lost password view
This commit is contained in:
parent
3a73f548e9
commit
5e731089ee
|
@ -989,7 +989,8 @@ administrator'))
|
|||
else:
|
||||
vars = {
|
||||
'lost_password_behaviour': str(behaviour),
|
||||
'lost_password_form': str(form.render())
|
||||
'lost_password_form': str(form.render()),
|
||||
'generate_on_remind': passwords_cfg.get('generate_on_remind', False)
|
||||
}
|
||||
|
||||
template.html_top(_('Lost Password'))
|
||||
|
@ -1196,13 +1197,17 @@ TextsDirectory.register('change_password',
|
|||
|
||||
TextsDirectory.register('lost_password',
|
||||
N_('Lost Password'),
|
||||
hint = N_('Available variables: lost_password_form, lost_password_behaviour'),
|
||||
hint = N_('Available variables: lost_password_form, lost_password_behaviour, generate_on_remind'),
|
||||
default = N_('''\
|
||||
[is lost_password_behaviour "dumb_question"]
|
||||
<p>Fill the form to get your password mailed back to you.</p>
|
||||
[is generate_on_remind "True"]<p>Fill the form to get a <strong>new</strong> password mailed back to you.</p>
|
||||
[else]<p>Fill the form to get your password mailed back to you.</p>
|
||||
[end]
|
||||
[end]
|
||||
[is lost_password_behaviour "email_reminder"]
|
||||
<p>Your password will be mailed back to you.</p>
|
||||
[is generate_on_remind "True"]<p>A <strong>new</strong> password will be mailed back to you.</p>
|
||||
[else]<p>Your password will be mailed back to you.</p>
|
||||
[end]
|
||||
[end]
|
||||
|
||||
[lost_password_form]
|
||||
|
|
1027
po/authentic.pot
1027
po/authentic.pot
File diff suppressed because it is too large
Load Diff
Reference in New Issue