From f375bb3db401e42b4317545a7e40dcfda692604d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 6 May 2020 14:01:30 +0200 Subject: Add ability to override login signup message --- client/src/app/login/login.component.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/app/login/login.component.ts') 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' import { ActivatedRoute } from '@angular/router' import { ServerConfig, RegisteredExternalAuthConfig } from '@shared/models/server/server-config.model' import { environment } from 'src/environments/environment' +import { HooksService } from '@app/core/plugins/hooks.service' @Component({ selector: 'my-login', @@ -40,6 +41,7 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni private userService: UserService, private redirectService: RedirectService, private notifier: Notifier, + private hooks: HooksService, private i18n: I18n ) { super() @@ -78,6 +80,8 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni if (this.usernameInput) { this.usernameInput.nativeElement.focus() } + + this.hooks.runAction('action:login.init', 'login') } getExternalLogins () { -- cgit v1.2.3