mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
21 lines
No EOL
371 B
JavaScript
21 lines
No EOL
371 B
JavaScript
(function(){
|
|
|
|
Template.user_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("Password reset link sent!");
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
})(); |