summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2019-07-24 12:50:06 -0400
committergumi <git@gumi.ca>2019-07-24 12:50:06 -0400
commitff633c2ee469c4828f7e29b3a117969be58f38a9 (patch)
tree4b582595c7d4842ac4ed7d35f7b09ebcad5ead40 /src
parent00dcf222a1875c5407f27f7bd839edbe739371bd (diff)
downloadwebsite-ff633c2ee469c4828f7e29b3a117969be58f38a9.tar.gz
website-ff633c2ee469c4828f7e29b3a117969be58f38a9.tar.bz2
website-ff633c2ee469c4828f7e29b3a117969be58f38a9.tar.xz
website-ff633c2ee469c4828f7e29b3a117969be58f38a9.zip
make password recovery work with older version of tmw-api
Diffstat (limited to 'src')
-rw-r--r--src/views/AccountRecovery.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/views/AccountRecovery.vue b/src/views/AccountRecovery.vue
index f02c2e0..c04829e 100644
--- a/src/views/AccountRecovery.vue
+++ b/src/views/AccountRecovery.vue
@@ -150,9 +150,13 @@ export default class Recovery extends Vue {
recaptcha_key = process.env.VUE_APP_RECAPTCHA;
async mounted () {
+ let token = document.location.hash.slice(1);
+
if (Reflect.has(this.$route.params, "emailToken")) {
- let token = this.$route.params.emailToken;
+ token = this.$route.params.emailToken;
+ }
+ if (token.length > 1) {
if (/^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$/i.test(token)) {
this.emailToken = token;
this.step = 4;