From d1ea2a988d05e1eca4066efb99c5f943f5267a78 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 20 Jun 2019 17:25:53 +0200 Subject: Fix signup email verification --- .../verify-account-email/verify-account-email.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/+signup') diff --git a/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts b/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts index 054f04310..48ddd7130 100644 --- a/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts +++ b/client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts @@ -33,8 +33,6 @@ export class VerifyAccountEmailComponent implements OnInit { this.verificationString = queryParams['verificationString'] this.isPendingEmail = queryParams['isPendingEmail'] === 'true' - console.log(this.isPendingEmail) - if (!this.userId || !this.verificationString) { this.notifier.error(this.i18n('Unable to find user id or verification string.')) } else { @@ -46,7 +44,9 @@ export class VerifyAccountEmailComponent implements OnInit { this.userService.verifyEmail(this.userId, this.verificationString, this.isPendingEmail) .subscribe( () => { - this.authService.refreshUserInformation() + if (this.authService.isLoggedIn()) { + this.authService.refreshUserInformation() + } this.success = true }, -- cgit v1.2.3