Skip to content
Snippets Groups Projects
Commit d2d26374 authored by Ben Adida's avatar Ben Adida
Browse files

whoops, forgot this file

parent 105c0acb
No related branches found
No related tags found
No related merge requests found
<div id="vAlign">
<div id="signUpFormWrap">
<!-- XXX this form submits to nowhere -->
<form id="signUpForm" class="cf authform">
<h1 class="serif">Forgot Password</h1>
<div class="notifications">
<div class="notification error doh">Doh! Something went wrong :-( </div>
<div class="notification error mismatchpassword">XXX: Your passwords need to match</div>
<div class="notification emailsent">A confirmation email has been sent to you at <strong id="sent_to_email"></strong>. Check it!</div>
</div>
<div id="forminputs">
<ul class="inputs">
<li>
<label class="serif" for="email">Email Address</label>
<input class="sans" id="email" autofocus required placeholder="Your Email" type="email" x-moz-errormessage="Please enter the email address you would like to use">
</li>
</ul>
<div class="submit cf">
<div class="remember cf">
<a class="signUpIn" href="/signin">Know your password? Sign in.</a>
</div>
<input type="submit" class="create" value="Reset Password"/>
</div>
</div>
</form>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$("form input[autofocus]").focus();
$("#signUpForm").bind("submit", function(event) {
event.preventDefault();
$(".notifications .notification").hide();
var email = $("#email").val(),
password = $("#password").val(),
vpassword = $("#vpassword").val();
if (password != vpassword) {
$(".notifications .notification.mismatchpassword").fadeIn();
return false;
}
BrowserIDIdentities.createUser(email, function onSuccess(keypair) {
$('#sent_to_email').html(email);
$('#forminputs').fadeOut();
$(".notifications .notification.emailsent").fadeIn();
}, function onFailure() {
// bad authentication
$(".notifications .notification.doh").fadeIn();
});
return false;
});
});
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment