Fix signup email verification

pull/1934/head
Chocobozzz 2019-06-20 17:25:53 +02:00
parent e1a1f9c623
commit d1ea2a988d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 3 deletions

View File

@ -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
},