Add password reset emailer

This commit is contained in:
calzoneman 2013-05-30 14:07:29 -04:00
parent c8df4b036c
commit 5205afb9cd
6 changed files with 70 additions and 6 deletions

View file

@ -267,6 +267,7 @@ $("#cebtn").click(function() {
});
$("#rpbtn").click(function() {
$("#rpbtn").text("Sending...");
$("#pwresetpane").find(".alert-error").remove();
$("#pwresetpane").find(".alert-success").remove();
var name = $("#rpusername").val();
@ -278,6 +279,7 @@ $("#rpbtn").click(function() {
"email=" + email
].join("&") + "&callback=?";
$.getJSON(url, function(data) {
$("#rpbtn").text("Send Reset");
if(data.success) {
$("<div/>").addClass("alert alert-success")
.text("Password reset link issued. Check your email.")