From ff633c2ee469c4828f7e29b3a117969be58f38a9 Mon Sep 17 00:00:00 2001 From: gumi Date: Wed, 24 Jul 2019 12:50:06 -0400 Subject: make password recovery work with older version of tmw-api --- src/views/AccountRecovery.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-60-g2f50