aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts6
1 files changed, 3 insertions, 3 deletions
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 {
33 this.verificationString = queryParams['verificationString'] 33 this.verificationString = queryParams['verificationString']
34 this.isPendingEmail = queryParams['isPendingEmail'] === 'true' 34 this.isPendingEmail = queryParams['isPendingEmail'] === 'true'
35 35
36 console.log(this.isPendingEmail)
37
38 if (!this.userId || !this.verificationString) { 36 if (!this.userId || !this.verificationString) {
39 this.notifier.error(this.i18n('Unable to find user id or verification string.')) 37 this.notifier.error(this.i18n('Unable to find user id or verification string.'))
40 } else { 38 } else {
@@ -46,7 +44,9 @@ export class VerifyAccountEmailComponent implements OnInit {
46 this.userService.verifyEmail(this.userId, this.verificationString, this.isPendingEmail) 44 this.userService.verifyEmail(this.userId, this.verificationString, this.isPendingEmail)
47 .subscribe( 45 .subscribe(
48 () => { 46 () => {
49 this.authService.refreshUserInformation() 47 if (this.authService.isLoggedIn()) {
48 this.authService.refreshUserInformation()
49 }
50 50
51 this.success = true 51 this.success = true
52 }, 52 },