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
No known key found for this signature in database
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(() => {