Fixed a bug where it tried to verify an email when there wasn't any

This commit is contained in:
kolaente 2018-11-06 10:39:54 +01:00
parent 13024086d9
commit d27b5d6870
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
beforeMount() {
// Try to verify the email
let emailVerifyToken = localStorage.getItem('emailConfirmToken')
if (emailVerifyToken !== '') {
if (emailVerifyToken) {
this.loading = true
HTTP.post(`user/confirm`, {token: emailVerifyToken})
.then(() => {