Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset user Password #527

Closed
thamer898 opened this issue Feb 20, 2016 · 15 comments
Closed

reset user Password #527

thamer898 opened this issue Feb 20, 2016 · 15 comments

Comments

@thamer898
Copy link

Hello

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

Regards

@gfosco
Copy link
Contributor

gfosco commented Feb 20, 2016

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.

@btate
Copy link

btate commented Feb 25, 2016

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

@thamer898
Copy link
Author

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

@mahabubakram
Copy link

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.

@btate
Copy link

btate commented Mar 7, 2016

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

@thamer898
Copy link
Author

Hello

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

Regards

@btate
Copy link

btate commented Mar 7, 2016

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

@thamer898
Copy link
Author

Hello

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

Regards

@btate
Copy link

btate commented Mar 7, 2016

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:"

@mahabubakram
Copy link

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: 'support@xxx.com',
}),
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.

@thamer898
Copy link
Author

Hello

Thank you @mahabubakram i will try this feature .

Regards

@Battleaxe19
Copy link

@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": "parse@example.com",
"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!

@fherx
Copy link

fherx commented Jun 26, 2017

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

@crislucan
Copy link

Works as per picture below:
parse_forget_password

@crislucan
Copy link

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants