diff options
author | gumi <git@gumi.ca> | 2019-07-24 12:50:06 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2019-07-24 12:50:06 -0400 |
commit | ff633c2ee469c4828f7e29b3a117969be58f38a9 (patch) | |
tree | 4b582595c7d4842ac4ed7d35f7b09ebcad5ead40 /src | |
parent | 00dcf222a1875c5407f27f7bd839edbe739371bd (diff) | |
download | website-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.vue | 6 |
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; |