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 {
this.userService.verifyEmail(this.userId, this.verificationString, this.isPendingEmail)
.subscribe(
() => {
- this.authService.refreshUserInformation()
+ if (this.authService.isLoggedIn()) {
+ this.authService.refreshUserInformation()
+ }
this.success = true
},