-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Password Forget and Reset Password #3872
Comments
Same with 0.5.1-1 relase |
Hi @Dexus and welcome to Ghost! I'm sorry but I can't reproduce the problem you are describing. Could you please give us more details about how to reproduce the problem. Useful information would include your browser version, what version of Ghost (download, Github, ...) your are using, the exact steps to reproduce the problem, your Linux version, proxy server (Apache, Nginx, ...), ... |
@Dexus does your email address or password contain non-Latin-standard characters perchance? |
@ErisDS no emai only includes "0-9 a-z . @" characters. The password is using characters like "0-9a-zA-Z-.,_:;!". |
We should consider any way we can make the tokens more robust when we do #3305, but as it appears to be working now I'm going to close this. |
I'm seeing this issue on Ghost 0.5.5, using Mailgun. If I log into the Mailgun interface and copy the link from there, it works fine - Mailgun is encoding your token, which is then not being recognised[0]. Given that your config file suggests Mailgun as a transport layer, I think this needs fixing. [0] e.g. the url |
Hm, yeah, that makes sense. Interesting question though: does base64 encoding the email cause this, or does Mailgun screw it up? Let me put on my mr. fixit hat... brb. |
The issue is that base64 encoding the token string possibly adds > encodeURIComponent("=")
"%3D" Since |
Nah, do it :) |
I am still seeing this issue, using a copy of Ghost built from Github as of today's date (git head: f438871) . I am being sent a password reset to a It doesn't seem to be browser related, I tried on both latest Chrome stable and my iPhone Safari browser. |
Will check it out today. I'm flying most of the day, so it might have to wait until tomorrow. If anyone else wants / can take it for a spin, do it :). |
|
Why you do not trim (=) on generate? And pad if need? |
Sorry for being too quick on the merge button. I think we have overlooked some special cases here. |
I should be able to work on this today. |
Hi @thisishugo are you still working on this at all? |
Unfortunately my laptop died and is with Apple being repaired, so I'm unable to work on this right now, sorry. Sent from my iPhone
|
@thisishugo Thanks for letting us know. @sebgie are you ok to pick this up? |
closes TryGhost#3872 - updated base64 escaping to respect + and \ - updated base64 escaping to remove = during transport - updated tests
Getting reports from all over that this is still pretty badly broken (forum post). It seems it only works for a very limited set of email addresses. |
Seems the current issues are with account activation tokens, rather than password reset tokens |
That's me being a moron. I added the escape mechanisms on the server side but did not update the regex (https://github.com/TryGhost/Ghost/blob/master/core/client/routes/signup.js#L18) that validates the token in admin. The error is reproducible for email addresses that generate a reset token that needs padding (try add / remove chars from the email). I'll try to fix it, if anyone is good at writing Regex feel free to PR. |
closes TryGhost#3872 closes TryGhost#4603 - updated regex to work with url safe tokens
I'm not sure if this was fixed by v0.5.6, but I'm still seeing this issue in a production blog when inviting a new user. The email is private obviously, but follows the form [email protected] |
It will be fixed when I push 0.5.7 out ;) |
Fantastic, looking forward to the release :) |
I'm still seeing this issue in v0.5.7 |
@JoshWillik I really thought that we have solved the invitation problem in 0.5.7. I would like to find out what's going wrong. My email is sebastian (at) ghost (dot) org. |
I had neglected to rebuild the front-end files when upgrading. Disregard this issue; I apologize for wasting your time. |
Hey, i have the problem, that i klick on the reset link on my mail.
But if i type my new password an click on "reset password" i allways get "Invalid token".
So i can't use my Ghost Blog now... :(
Use: Linux Server with NodeJS 0.10.31 and Ghost 0.5.0
The text was updated successfully, but these errors were encountered: