0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Merge pull request #4604 from sebgie/issue#3872-1

Fix reset token verification
This commit is contained in:
Hannah Wolfe 2014-12-08 09:18:23 +00:00
commit 7e8c1d266f

View file

@ -15,7 +15,7 @@ var SignupRoute = Ember.Route.extend(styleBody, loadingIndicator, {
tokenText,
email,
model = {},
re = /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/;
re = /^(?:[A-Za-z0-9_\-]{4})*(?:[A-Za-z0-9_\-]{2}|[A-Za-z0-9_\-]{3})?$/;
return new Ember.RSVP.Promise(function (resolve) {
if (!re.test(params.token)) {