fix: use watcher to check for user query tokens
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2021-12-12 12:20:33 +01:00
parent a106511646
commit 807fb6a9fe
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 12 additions and 3 deletions

View File

@ -48,9 +48,6 @@ export default defineComponent({
},
beforeMount() {
this.setupOnlineStatus()
this.setupPasswortResetRedirect()
this.setupEmailVerificationRedirect()
this.setupAccountDeletionVerification()
},
beforeCreate() {
setLanguage()
@ -64,6 +61,18 @@ export default defineComponent({
this.$router.push({name: 'home'})
}
},
watch: {
// Calling these methods in the mounted hook directly does not work.
'$route.query.accountDeletionConfirm'() {
this.setupAccountDeletionVerification()
},
'$route.query.userPasswordReset'() {
this.setupPasswortResetRedirect()
},
'$route.query.userEmailConfirm'() {
this.setupEmailVerificationRedirect()
},
},
computed: {
isTouch() {
return isTouchDevice()