+ err => this.notifier.error(err.message)
+ )
+ }
+
+ setEmailAsVerified (user: User) {
+ this.userService.updateUser(user.id, { emailVerified: true }).subscribe(
+ () => {
+ this.notifier.success(this.i18n('User {{username}} email set as verified', { username: user.username }))
+
+ this.userChanged.emit()
+ },
+
+ err => this.notifier.error(err.message)