Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

$if(error)$<div class="error"><p>$error$</p></div>$endif$

$if(success)$
<div class="success"><p>The password for your account has been reset.</p></div>
$else$

<h2>Reset your password</h2>
<p>
Please select a new password.
</p>

<form method="post" action="$formurl$/password.reset" id="password_reset_complete">
<input type="hidden" name="token" value='$token;format="html"$' />

	<label for="new_password">
		<span class="question">New Password</span>
		<span class="answer"><input type="password" name="new_password" id="new_password" value='$new_password;format="html"$'/><span id="password_feedback"></span></span>
	</label>

	<label for="new_password2">
		<span class="question">Re-enter Password</span>
		<span class="answer"><input type="password" name="new_password2" id="new_password2" value='$new_password2;format="html"$'/></span>
	</label>

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

</form>

<script src="r/password.js" type="text/javascript"></script>
<script type="text/javascript">
	passwordSetup("new_password", "new_password2");

	if(document.getElementById('new_password').value != "") {
		document.getElementById('new_password').focus();
	} else {
		document.getElementById('new_password').focus();
	}
</script>
$endif$

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