From d27b5d6870aef5a46173b9edbaf810687b92564a Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 6 Nov 2018 10:39:54 +0100 Subject: [PATCH] Fixed a bug where it tried to verify an email when there wasn't any --- src/components/user/Login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/user/Login.vue b/src/components/user/Login.vue index 7f0258af5..db80c23fa 100644 --- a/src/components/user/Login.vue +++ b/src/components/user/Login.vue @@ -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(() => {