aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/login
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/login')
-rw-r--r--client/src/app/login/login.component.html2
-rw-r--r--client/src/app/login/login.component.ts4
2 files changed, 5 insertions, 1 deletions
diff --git a/client/src/app/login/login.component.html b/client/src/app/login/login.component.html
index a935c86c3..599b203ae 100644
--- a/client/src/app/login/login.component.html
+++ b/client/src/app/login/login.component.html
@@ -8,7 +8,7 @@
8 </div> 8 </div>
9 9
10 <ng-container *ngIf="!externalAuthError && !isAuthenticatedWithExternalAuth"> 10 <ng-container *ngIf="!externalAuthError && !isAuthenticatedWithExternalAuth">
11 <div class="alert alert-info" *ngIf="signupAllowed === false" role="alert"> 11 <div class="looking-for-account alert alert-info" *ngIf="signupAllowed === false" role="alert">
12 <h6 class="alert-heading" i18n> 12 <h6 class="alert-heading" i18n>
13 If you are looking for an account… 13 If you are looking for an account…
14 </h6> 14 </h6>
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'
10import { ActivatedRoute } from '@angular/router' 10import { ActivatedRoute } from '@angular/router'
11import { ServerConfig, RegisteredExternalAuthConfig } from '@shared/models/server/server-config.model' 11import { ServerConfig, RegisteredExternalAuthConfig } from '@shared/models/server/server-config.model'
12import { environment } from 'src/environments/environment' 12import { environment } from 'src/environments/environment'
13import { 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 () {