meteor - override reset password with accounts-ui installed -


I want to override the reset password and want to use my own form

I After setting up the account, I have the following

  router.rout ('/ reset-password', {path: '/ # / reset-password /: slug', name: 'forgot password ', Template:' reset password ', wait: function () {console.log ("reset link";}, controller: main route controller});  

In HTML

  {{#if reset password}} & lt; Form id = "resetPasswordForm" method = "post" & gt; & Lt; Input id = "resetPasswordPassword" name = "password" placeholder = "new password" type = "password" & gt; & Lt; Input id = "resetPasswordPasswordConfirm" name = "password-confirmation" placeholder = "confirm" type = "password" & gt; & Lt; Input class = "btn-deposit" type = "submit" value = "reset" & gt; & Lt; / Form & gt; {{/ If}} & lt; / Template & gt;  

In .js file

  if (Accounts._resetPasswordToken) {session .set ('resetpassword', accounts._resetPasswordToken ); } Template.ResetPassword.helpers ({resetPassword: function () {return Session.get ('resetpassword')}}});  

But it is still showing the resetting password dialog for the account-u

'token); };

Use your link in the iron-router

  router. Wait (function: '/ resetpassword', {path: '/ resetpassword /: slug', name: 'forgot-password', template: 'reset password', wait: function () {console.log ("link reset" );}, Controller: Main Street Controller});  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -