diff options
Diffstat (limited to 'client/src/app/+signup/+verify-account')
2 files changed, 8 insertions, 10 deletions
diff --git a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts index afb0e6d6c..83c24a251 100644 --- a/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts +++ b/client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts | |||
@@ -34,15 +34,13 @@ export class VerifyAccountAskSendEmailComponent extends FormReactive implements | |||
34 | askSendVerifyEmail () { | 34 | askSendVerifyEmail () { |
35 | const email = this.form.value['verify-email-email'] | 35 | const email = this.form.value['verify-email-email'] |
36 | this.userService.askSendVerifyEmail(email) | 36 | this.userService.askSendVerifyEmail(email) |
37 | .subscribe( | 37 | .subscribe({ |
38 | () => { | 38 | next: () => { |
39 | this.notifier.success($localize`An email with verification link will be sent to ${email}.`) | 39 | this.notifier.success($localize`An email with verification link will be sent to ${email}.`) |
40 | this.redirectService.redirectToHomepage() | 40 | this.redirectService.redirectToHomepage() |
41 | }, | 41 | }, |
42 | 42 | ||
43 | err => { | 43 | error: err => this.notifier.error(err.message) |
44 | this.notifier.error(err.message) | 44 | }) |
45 | } | ||
46 | ) | ||
47 | } | 45 | } |
48 | } | 46 | } |
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 acc688ab3..457a0abe0 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 | |||
@@ -38,8 +38,8 @@ export class VerifyAccountEmailComponent implements OnInit { | |||
38 | 38 | ||
39 | verifyEmail () { | 39 | verifyEmail () { |
40 | this.userService.verifyEmail(this.userId, this.verificationString, this.isPendingEmail) | 40 | this.userService.verifyEmail(this.userId, this.verificationString, this.isPendingEmail) |
41 | .subscribe( | 41 | .subscribe({ |
42 | () => { | 42 | next: () => { |
43 | if (this.authService.isLoggedIn()) { | 43 | if (this.authService.isLoggedIn()) { |
44 | this.authService.refreshUserInformation() | 44 | this.authService.refreshUserInformation() |
45 | } | 45 | } |
@@ -47,11 +47,11 @@ export class VerifyAccountEmailComponent implements OnInit { | |||
47 | this.success = true | 47 | this.success = true |
48 | }, | 48 | }, |
49 | 49 | ||
50 | err => { | 50 | error: err => { |
51 | this.failed = true | 51 | this.failed = true |
52 | 52 | ||
53 | this.notifier.error(err.message) | 53 | this.notifier.error(err.message) |
54 | } | 54 | } |
55 | ) | 55 | }) |
56 | } | 56 | } |
57 | } | 57 | } |