diff options
Diffstat (limited to 'client/src/app/login/login.component.ts')
-rw-r--r-- | client/src/app/login/login.component.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts index 5d935cb49..fff4b43f6 100644 --- a/client/src/app/login/login.component.ts +++ b/client/src/app/login/login.component.ts | |||
@@ -10,6 +10,7 @@ import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' | |||
10 | import { ActivatedRoute } from '@angular/router' | 10 | import { ActivatedRoute } from '@angular/router' |
11 | import { ServerConfig, RegisteredExternalAuthConfig } from '@shared/models/server/server-config.model' | 11 | import { ServerConfig, RegisteredExternalAuthConfig } from '@shared/models/server/server-config.model' |
12 | import { environment } from 'src/environments/environment' | 12 | import { environment } from 'src/environments/environment' |
13 | import { HooksService } from '@app/core/plugins/hooks.service' | ||
13 | 14 | ||
14 | @Component({ | 15 | @Component({ |
15 | selector: 'my-login', | 16 | selector: 'my-login', |
@@ -40,6 +41,7 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
40 | private userService: UserService, | 41 | private userService: UserService, |
41 | private redirectService: RedirectService, | 42 | private redirectService: RedirectService, |
42 | private notifier: Notifier, | 43 | private notifier: Notifier, |
44 | private hooks: HooksService, | ||
43 | private i18n: I18n | 45 | private i18n: I18n |
44 | ) { | 46 | ) { |
45 | super() | 47 | super() |
@@ -78,6 +80,8 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
78 | if (this.usernameInput) { | 80 | if (this.usernameInput) { |
79 | this.usernameInput.nativeElement.focus() | 81 | this.usernameInput.nativeElement.focus() |
80 | } | 82 | } |
83 | |||
84 | this.hooks.runAction('action:login.init', 'login') | ||
81 | } | 85 | } |
82 | 86 | ||
83 | getExternalLogins () { | 87 | getExternalLogins () { |