diff options
author | Chocobozzz <me@florianbigard.com> | 2022-01-21 11:03:25 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-01-21 11:03:25 +0100 |
commit | d92d070c91ee73657f2e3a5756954ef63fdba306 (patch) | |
tree | 7948b03e025b8878d64c45b5a969871667dab5f1 /client/src/app/+signup/+verify-account/verify-account-email | |
parent | cce70ae5ca3a2bfd893a7a8c457086151470de70 (diff) | |
download | PeerTube-d92d070c91ee73657f2e3a5756954ef63fdba306.tar.gz PeerTube-d92d070c91ee73657f2e3a5756954ef63fdba306.tar.zst PeerTube-d92d070c91ee73657f2e3a5756954ef63fdba306.zip |
Split user service
Diffstat (limited to 'client/src/app/+signup/+verify-account/verify-account-email')
-rw-r--r-- | client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts | 7 |
1 files changed, 4 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 827ec7652..88efce4a1 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 | |||
@@ -1,6 +1,7 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { ActivatedRoute } from '@angular/router' | 2 | import { ActivatedRoute } from '@angular/router' |
3 | import { AuthService, Notifier, UserService } from '@app/core' | 3 | import { AuthService, Notifier } from '@app/core' |
4 | import { UserSignupService } from '@app/shared/shared-users' | ||
4 | 5 | ||
5 | @Component({ | 6 | @Component({ |
6 | selector: 'my-verify-account-email', | 7 | selector: 'my-verify-account-email', |
@@ -16,7 +17,7 @@ export class VerifyAccountEmailComponent implements OnInit { | |||
16 | private verificationString: string | 17 | private verificationString: string |
17 | 18 | ||
18 | constructor ( | 19 | constructor ( |
19 | private userService: UserService, | 20 | private userSignupService: UserSignupService, |
20 | private authService: AuthService, | 21 | private authService: AuthService, |
21 | private notifier: Notifier, | 22 | private notifier: Notifier, |
22 | private route: ActivatedRoute | 23 | private route: ActivatedRoute |
@@ -37,7 +38,7 @@ export class VerifyAccountEmailComponent implements OnInit { | |||
37 | } | 38 | } |
38 | 39 | ||
39 | verifyEmail () { | 40 | verifyEmail () { |
40 | this.userService.verifyEmail(this.userId, this.verificationString, this.isPendingEmail) | 41 | this.userSignupService.verifyEmail(this.userId, this.verificationString, this.isPendingEmail) |
41 | .subscribe({ | 42 | .subscribe({ |
42 | next: () => { | 43 | next: () => { |
43 | if (this.authService.isLoggedIn()) { | 44 | if (this.authService.isLoggedIn()) { |