aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+signup
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-06-20 17:25:53 +0200
committerChocobozzz <me@florianbigard.com>2019-06-20 17:25:53 +0200
commitd1ea2a988d05e1eca4066efb99c5f943f5267a78 (patch)
tree1d31daea2f2477dce55d6e29347b08a30ed910b7 /client/src/app/+signup
parente1a1f9c623bfbbc7e38b36047926338f2e1c61d9 (diff)
downloadPeerTube-d1ea2a988d05e1eca4066efb99c5f943f5267a78.tar.gz
PeerTube-d1ea2a988d05e1eca4066efb99c5f943f5267a78.tar.zst
PeerTube-d1ea2a988d05e1eca4066efb99c5f943f5267a78.zip
Fix signup email verification
Diffstat (limited to 'client/src/app/+signup')
-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 },