[lost_password] when a new password is generated state it in the lost password view

This commit is contained in:
Benjamin Dauvergne 2011-02-01 12:58:34 +00:00
parent 3a73f548e9
commit 5e731089ee
3 changed files with 1083 additions and 1033 deletions

View File

@ -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]

File diff suppressed because it is too large Load Diff

1076
po/fr.po

File diff suppressed because it is too large Load Diff