mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-30 04:58:37 +01:00
Merge pull request #6053 from senky/ticket/16562
[ticket/16562] Add password requirements to reset
This commit is contained in:
commit
857cec0509
@ -428,6 +428,7 @@ class reset_password
|
||||
'PASSWORD_RESET_ERRORS' => !empty($errors) ? array_map([$this->language, 'lang'], $errors) : '',
|
||||
'S_IS_PASSWORD_RESET' => true,
|
||||
'U_RESET_PASSWORD_ACTION' => $this->helper->route('phpbb_ucp_reset_password_controller'),
|
||||
'L_CHANGE_PASSWORD_EXPLAIN' => $this->language->lang($this->config['pass_complex'] . '_EXPLAIN', $this->language->lang('CHARACTERS', (int) $this->config['min_pass_chars'])),
|
||||
'S_HIDDEN_FIELDS' => build_hidden_fields([
|
||||
'u' => $user_id,
|
||||
'token' => $reset_token,
|
||||
|
@ -12,7 +12,7 @@
|
||||
{% if S_IS_PASSWORD_RESET %}
|
||||
{% if PASSWORD_RESET_ERRORS %}<p class="error">{{ PASSWORD_RESET_ERRORS | join('<br>') }}</p>{% endif %}
|
||||
<dl>
|
||||
<dt><label for="new_password">{{ lang('NEW_PASSWORD') ~ lang('COLON') }}</label></dt>
|
||||
<dt><label for="new_password">{{ lang('NEW_PASSWORD') ~ lang('COLON') }}</label><br /><span>{{ lang('CHANGE_PASSWORD_EXPLAIN') }}</span></dt>
|
||||
<dd><input class="inputbox autowidth" type="password" name="new_password" id="new_password" size="25" maxlength="255" title="{{ lang('CHANGE_PASSWORD') }}" autocomplete="off" /></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
|
Loading…
x
Reference in New Issue
Block a user