mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Fix reset token verification
closes #3872 closes #4603 - updated regex to work with url safe tokens
This commit is contained in:
parent
151715510c
commit
d479b0c262
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ var SignupRoute = Ember.Route.extend(styleBody, loadingIndicator, {
|
||||||
tokenText,
|
tokenText,
|
||||||
email,
|
email,
|
||||||
model = {},
|
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) {
|
return new Ember.RSVP.Promise(function (resolve) {
|
||||||
if (!re.test(params.token)) {
|
if (!re.test(params.token)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue