Add password reset emailer
This commit is contained in:
parent
c8df4b036c
commit
5205afb9cd
6 changed files with 70 additions and 6 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue