Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
$header(formurl,breadcrumbs,shortcuts)$

$if(error)$<div class="error"><p>Either this email address is unknown, or resetting passwords for this account is unavailable for the next few minutes. Please try again shortly.</p></div>$endif$
$if(info)$<div class="info"><p>An email has been sent to your email address with the details on how to reset your password.</p></div>$endif$

<h2>Reset your password</h2>
<p>
To reset your password, please enter your full email address. We will send you an email with a link
to verify your identity.
</p>

<form method="post" action="$formurl$/password.reset" id="password_reset">
$if(target)$<input type="hidden" name="target" value='$target;format="html"$' />$endif$

<label for="email">
    <span class="question">Email address</span>
    <span class="answer"><input type="text" name="email" id="email" value='$email;format="html"$'/></span>
</label>

<div class="submit">
<input type="submit" value="Reset password"/>
</div>

$if(ldapEnabled)$
<p>
This form allows you to reset your password for this system only. It does not allow resetting your LDAP
password.
</p>
$endif$

</form>

<script type="text/javascript">
if(document.getElementById('email').value!="") {
    document.getElementById('email').focus();
} else {
    document.getElementById('email').focus();
}
</script>

$footer()$
New to GrepCode? Check out our FAQ X