Fixed a bug where it tried to verify an email when there wasn't any
All checks were successful
the build was successful

This commit is contained in:
kolaente 2018-11-06 10:39:54 +01:00
parent 13024086d9
commit d27b5d6870
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

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