{** * templates/user/loginChangePassword.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2000-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Form to change a user's password in order to login. * *} {strip} {assign var="pageTitle" value="user.changePassword"} {url|assign:"currentUrl" page="login" op="changePassword"} {include file="common/header.tpl"} {/strip} {if !$passwordLengthRestrictionLocaleKey} {assign var="passwordLengthRestrictionLocaleKey" value="user.register.passwordLengthRestriction"} {/if}
{if $confirmHash} {/if} {include file="common/formErrors.tpl"}

{if !$confirmHash}{translate key="user.login.changePasswordInstructions"}{else}{translate key="user.login.changePasswordInstructionsOneStep"}{/if}

{fbvFormArea id="loginFields"} {fbvFormSection label="user.username" for="username"} {fbvElement type="text" required=true id="username" value=$username|escape maxlength="32" size=$fbvStyles.size.MEDIUM} {/fbvFormSection} {if !$confirmHash} {fbvFormSection label="user.profile.oldPassword" for="oldPassword"} {fbvElement type="text" required=true password=true id="oldPassword" value=$oldPassword|escape maxlength="32" size=$fbvStyles.size.MEDIUM} {/fbvFormSection} {/if} {fbvFormSection label="user.profile.newPassword" for="password"} {fbvElement type="text" required=true password=true id="password" value=$password|escape maxlength="32" size=$fbvStyles.size.MEDIUM} {fieldLabel translate=true for=password key=$passwordLengthRestrictionLocaleKey length=$minPasswordLength} {/fbvFormSection} {fbvFormSection label="user.profile.repeatNewPassword" for="password2"} {fbvElement type="text" required=true password=true id="password2" value=$password2|escape maxlength="32" size=$fbvStyles.size.MEDIUM} {/fbvFormSection} {fbvFormButtons} {/fbvFormArea}
{include file="common/footer.tpl"}