hook icon indicating copy to clipboard operation
hook copied to clipboard

Reset password: use server-side template

Open endel opened this issue 10 years ago • 3 comments

Currently to reset passwords it's necessary to implement everything in front-end.

It should be necessary only to trigger auth.forgotPassword in the frontend. The auth.resetPassword should be deprecated.

So the process should be the following:

  1. front-end calls forgotPassword method. (email template customization)
  2. user receives an email with the link to hook server, to reset the password
  3. user fill the new password, and get redirected to the front-end

endel avatar Feb 25 '15 14:02 endel

It can be implemented by two apps. One is a server-side app to provide a link to check the link id and reset new password. One do not call forgotPassword but save a link id and send a email.

landall avatar Oct 02 '18 15:10 landall

Hi @landall, are you using hook in some project or just playing around with it?

I'm asking because this project hasn't been maintained for quite a while, as I've been investing my time on other projects.

endel avatar Oct 02 '18 16:10 endel

@endel .i’m seeking a easy-to-use BaaS framework and find hook in github. just read the docs but try nothing. I think it is just designed as i want but i cannot find the docs about some features. for example how to set a role to a user in order to implement admin and normal user.

landall avatar Oct 02 '18 16:10 landall