diff options
-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; |