mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 20:16:39 -04:00
14 lines
No EOL
376 B
JavaScript
14 lines
No EOL
376 B
JavaScript
Template[getTemplate('forgot_password')].events({
|
|
'click input[type=submit]': function(e){
|
|
e.preventDefault();
|
|
var options=new Object();
|
|
options.email=$('#email').val();
|
|
Accounts.forgotPassword(options, function(error){
|
|
if(error){
|
|
console.log(error);
|
|
}else{
|
|
throwError(i18n.t("Password reset link sent!"));
|
|
}
|
|
});
|
|
}
|
|
}); |