Skip to content

Commit

Permalink
Remove password length limit. Resolves asmecher/pkp-lib#3
Browse files Browse the repository at this point in the history
  • Loading branch information
ctgraham committed Oct 1, 2014
1 parent f40c574 commit 961f813
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/pkp
2 changes: 1 addition & 1 deletion plugins/blocks/user/block.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</tr>
<tr>
<td><label for="sidebar-password">{translate key="user.password"}</label></td>
<td><input type="password" id="sidebar-password" name="password" value="{$password|escape}" size="12" maxlength="32" class="textField" /></td>
<td><input type="password" id="sidebar-password" name="password" value="{$password|escape}" size="12" class="textField" /></td>
</tr>
<tr>
<td colspan="2"><input type="checkbox" id="remember" name="remember" value="1" /> <label for="remember">{translate key="plugins.block.user.rememberMe"}</label></td>
Expand Down
4 changes: 2 additions & 2 deletions templates/manager/people/userProfileForm.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@
<tr valign="top">
<td class="label">{fieldLabel name="password" required=$passwordRequired key="user.password"}</td>
<td class="value">
<input type="password" name="password" id="password" value="{$password|escape}" size="20" maxlength="32" class="textField" />
<input type="password" name="password" id="password" value="{$password|escape}" size="20" class="textField" />
<br />
<span class="instruct">{translate key="user.register.passwordLengthRestriction" length=$minPasswordLength}</span>
</td>
</tr>
<tr valign="top">
<td class="label">{fieldLabel name="password2" required=$passwordRequired key="user.repeatPassword"}</td>
<td class="value"><input type="password" name="password2" id="password2" value="{$password2|escape}" size="20" maxlength="32" class="textField" /></td>
<td class="value"><input type="password" name="password2" id="password2" value="{$password2|escape}" size="20" class="textField" /></td>
</tr>
{if $userId}
<tr valign="top">
Expand Down
6 changes: 3 additions & 3 deletions templates/user/changePassword.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
<table class="data" width="100%">
<tr valign="top">
<td width="20%" class="label">{fieldLabel name="oldPassword" key="user.profile.oldPassword"}</td>
<td width="80%" class="value"><input type="password" name="oldPassword" id="oldPassword" value="{$oldPassword|escape}" size="20" maxlength="32" class="textField" /></td>
<td width="80%" class="value"><input type="password" name="oldPassword" id="oldPassword" value="{$oldPassword|escape}" size="20" class="textField" /></td>
</tr>
<tr valign="top">
<td class="label">{fieldLabel name="password" key="user.profile.newPassword"}</td>
<td class="value"><input type="password" name="password" value="{$password|escape}" id="password" size="20" maxlength="32" class="textField" /></td>
<td class="value"><input type="password" name="password" value="{$password|escape}" id="password" size="20" class="textField" /></td>
</tr>
<tr valign="top">
<td></td>
<td><span class="instruct">{translate key="user.register.passwordLengthRestriction" length=$minPasswordLength}</span></td>
</tr>
<tr valign="top">
<td class="label">{fieldLabel name="password2" key="user.profile.repeatNewPassword"}</td>
<td class="value"><input type="password" name="password2" id="password2" value="{$password2|escape}" size="20" maxlength="32" class="textField" /></td>
<td class="value"><input type="password" name="password2" id="password2" value="{$password2|escape}" size="20" class="textField" /></td>
</tr>
</table>

Expand Down
4 changes: 2 additions & 2 deletions templates/user/register.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

<tr valign="top">
<td class="label">{fieldLabel name="password" required="true" key="user.password"}</td>
<td class="value"><input type="password" name="password" value="{$password|escape}" id="password" size="20" maxlength="32" class="textField" /></td>
<td class="value"><input type="password" name="password" value="{$password|escape}" id="password" size="20" class="textField" /></td>
</tr>

{if !$existingUser}
Expand All @@ -76,7 +76,7 @@
</tr>
<tr valign="top">
<td class="label">{fieldLabel name="password2" required="true" key="user.repeatPassword"}</td>
<td class="value"><input type="password" name="password2" id="password2" value="{$password2|escape}" size="20" maxlength="32" class="textField" /></td>
<td class="value"><input type="password" name="password2" id="password2" value="{$password2|escape}" size="20" class="textField" /></td>
</tr>

{if $captchaEnabled}
Expand Down

0 comments on commit 961f813

Please sign in to comment.