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(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>Activate account</h2>
<p>
Please nominate the password you would like to use while signing in to this site.
</p>

<form method="post" action="$formurl$/activate.account" id="activate_account">
	<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="Activate my account"/>
	</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>

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