Add user email verification when registering (#3)

This commit is contained in:
konrad 2018-11-01 22:58:59 +00:00 committed by Gitea
parent 4a78a508df
commit 89023908b5
3 changed files with 29 additions and 2 deletions

View file

@ -105,6 +105,12 @@
localStorage.setItem('passwordResetToken', this.$route.query.userPasswordReset)
router.push({name: 'passwordReset'})
}
// Email verification
if(this.$route.query.userEmailConfirm !== undefined) {
localStorage.removeItem('emailConfirmToken') // Delete an eventually preexisting old token
localStorage.setItem('emailConfirmToken', this.$route.query.userEmailConfirm)
router.push({name: 'login'})
}
},
created() {
if (this.user.authenticated) {