From d479b0c26260fe3c108bf730c823c46dc546046a Mon Sep 17 00:00:00 2001 From: Sebastian Gierlinger Date: Mon, 8 Dec 2014 09:34:40 +0100 Subject: [PATCH] Fix reset token verification closes #3872 closes #4603 - updated regex to work with url safe tokens --- core/client/routes/signup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/routes/signup.js b/core/client/routes/signup.js index e04eedcb14..d49de138ed 100644 --- a/core/client/routes/signup.js +++ b/core/client/routes/signup.js @@ -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)) {