mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Show correct info about password requirements (#676)
This commit is contained in:
parent
045297eb6d
commit
7d57483086
3 changed files with 3 additions and 2 deletions
|
@ -654,6 +654,7 @@ $template->assign_vars(array(
|
|||
'EDIT_PROFILE' => ($mode == 'editprofile'),
|
||||
'ADM_EDIT' => $adm_edit,
|
||||
'SHOW_PASS' => ($adm_edit || ($mode == 'register' && IS_ADMIN)),
|
||||
'PASSWORD_LONG' => sprintf($lang['PASSWORD_LONG'], PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH),
|
||||
'CAPTCHA_HTML' => ($need_captcha) ? bb_captcha('get') : '',
|
||||
|
||||
'LANGUAGE_SELECT' => \TorrentPier\Legacy\Select::language($pr_data['user_lang'], 'user_lang'),
|
||||
|
|
|
@ -615,7 +615,7 @@ $lang['PROFILE_UPDATED_INACTIVE'] = 'Your profile has been updated. However, you
|
|||
|
||||
$lang['PASSWORD_MISMATCH'] = 'The passwords you entered did not match.';
|
||||
$lang['CURRENT_PASSWORD_MISMATCH'] = 'The current password you supplied does not match that stored in the database.';
|
||||
$lang['PASSWORD_LONG'] = 'Your password must be no more than 32 characters.';
|
||||
$lang['PASSWORD_LONG'] = 'Your password must be no longer than %d characters and no shorter than %d characters.';
|
||||
$lang['TOO_MANY_REGISTERS'] = 'You have made too many registration attempts. Please try again later.';
|
||||
$lang['USERNAME_TAKEN'] = 'Sorry, but this username has already been taken.';
|
||||
$lang['USERNAME_INVALID'] = 'Sorry, but this username contains an invalid character';
|
||||
|
|
|
@ -80,7 +80,7 @@ document.write('<input type="hidden" name="user_timezone" value="'+tz+'" />');
|
|||
<td class="prof-title"><!-- IF EDIT_PROFILE -->{L_NEW_PASSWORD}: * <br /><h6>{L_PASSWORD_IF_CHANGED}</h6><!-- ELSE -->{L_PASSWORD}: *<!-- ENDIF --></td>
|
||||
<td>
|
||||
<input id="pass" type="<!-- IF SHOW_PASS -->text<!-- ELSE -->password<!-- ENDIF -->" name="new_pass" size="35" maxlength="32" value="" />
|
||||
<span id="autocomplete" title="{L_AUTOCOMPLETE}">◄</span> <i class="med">{L_PASSWORD_LONG}</i>
|
||||
<span id="autocomplete" title="{L_AUTOCOMPLETE}">◄</span> <i class="med">{PASSWORD_LONG}</i>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue