parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

reset user Password

Open thamer898 opened this issue 10 years ago • 15 comments

Hello

How to allow user to reset his password using New Parse server ?

Regards

thamer898 avatar Feb 20 '16 12:02 thamer898

It's not implemented yet, the way it worked on Parse with an email and a link. The mail adapter design is being discussed in #275 and there are several variations being worked on in pull requests ( #187, #191, #250 ). As soon as it's available we'll announce and blog post, etc.

gfosco avatar Feb 20 '16 19:02 gfosco

Is there any idea of a timeline on this one? I think this is the last missing piece for us to migrate production.

btate avatar Feb 25 '16 20:02 btate

I agree with you @btate this is important feature should implemented .

thamer898 avatar Feb 25 '16 21:02 thamer898

Are we able now to reset password of the user ? As currently I am using mandrill for email. So actually I need the way to send reset verification link to the user and perform reset password of that user.

Please let us know the current progress.

mahabubakram avatar Mar 07 '16 15:03 mahabubakram

I've been able to get password reset working according to #627. I think mailgun is the only adapter currently though.

btate avatar Mar 07 '16 16:03 btate

Hello

@btate can you describe the method that you use it to allow user reset password ?

Regards

thamer898 avatar Mar 07 '16 16:03 thamer898

The ticket #627 has the configuration details. You'll need a mailgun account setup.

btate avatar Mar 07 '16 16:03 btate

Hello

okay @btate i have a mailgun account but i need the instructions ?

Regards

thamer898 avatar Mar 07 '16 16:03 thamer898

They are all outlined on that ticket.
Post starts with "Here's a short doc in case anyone else wants to try out password reset with mailgun:"

btate avatar Mar 07 '16 16:03 btate

I have not used it but @thamer898 you can follow tanmays instruction.

Here's a short doc in case anyone else wants to try out password reset with mailgun:

In index.js (the paths mentioned below are in reference when using the parse-server-example app, change them to appropriate values when using standalone parse-server)

var SimpleMailgunAdapter = require('parse-server/lib/Adapters/Email/SimpleMailgunAdapter');

var api = new ParseServer({ databaseURI: 'xxx', cloud: 'xxx', appId: 'xx', appName: 'Your app name here', masterKey: 'xxx', serverURL: 'xxx', publicServerURL: '', emailAdapter: SimpleMailgunAdapter({ apiKey: 'key-xxx', domain: 'xxx.com', fromAddress: '[email protected]', }), customPages: { invalidLink: 'http://yourdomain.com/invalid_link.html', verifyEmailSuccess: 'http://yourdomain.com/verify_email_success.html', choosePassword: 'http://yourdomain.com/choose_password.html', passwordResetSuccess: 'http://yourdomain.com/password_reset_success.html' } }); Using customPages is optional if you want to provide your own hosted pages.

The choose_password file is located in the parse-server/views folder. You need to make 2 changes before uploading it to your web server:

Make sure to add a .html extension to choose_password. Open choose_password and replace the SERVER_URL with a valid absolute url, this would be same as the serverURL you set in index.js.

And read that thread thoroughly. Though I am waiting for the production of this feature as I am using mandrill now so I need generic provider. Not the mailgun one.

mahabubakram avatar Mar 07 '16 16:03 mahabubakram

Hello

Thank you @mahabubakram i will try this feature .

Regards

thamer898 avatar Mar 07 '16 16:03 thamer898

@mahabubakram

I've followed your process but i'm still running into problems. When I submit my form, I get this error: Trying to send a reset password but no adapter is set.

I've followed instructions on some other threads and installed: "parse-server-simple-mailgun-adapter": "^1.0.0"

In app.json I've got this:

"emailAdapter": { "module": "parse-server-simple-mailgun-adapter", "options": { "fromAddress": "[email protected]", "domain": "sandbox81f9087fe60b4abdb7fe21aa37180c9a.mailgun.org", "apiKey": "key-3b37bc75295c7a9dfc57479cc1946784" } }

I'm still getting the error and i'm at a loss of what to try next. Any ideas would be much appreciated!

Thanks!

Battleaxe19 avatar Nov 11 '16 19:11 Battleaxe19

mailgun is a really bad solutions for password reset if you don't create a pay account, if you are a free user you only can send emails to specific recipients, in other words you need to add manually the emails

fherx avatar Jun 26 '17 12:06 fherx

Works as per picture below: parse_forget_password

crislucan avatar Jul 14 '17 09:07 crislucan

image

crislucan avatar Jul 14 '17 09:07 crislucan