File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ export class LockScreenUI extends UIScreen {
2727 } ) ;
2828
2929 this . _activeSession = activeSession ;
30- this . _auth = auth ;
3130 this . _form = {
3231 lockForm : document . getElementById ( 'lock-form' ) as HTMLFormElement ,
3332 displayName : document . getElementById ( 'active-user-session-display-name' ) as HTMLHeadingElement ,
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ export class LoginScreenUI extends UIScreen {
2424 } ,
2525 } ) ;
2626
27- this . _auth = auth ;
2827 this . _form = {
2928 loginForm : document . getElementById ( 'login-form' ) as HTMLFormElement ,
3029 loginInput : document . getElementById ( 'login' ) as HTMLInputElement ,
Original file line number Diff line number Diff line change @@ -18,16 +18,22 @@ export interface UILockScreenElements {
1818export abstract class UIScreen {
1919 protected _auth : Authenticator ;
2020 abstract _form : UILockScreenElements | UILoginElements ;
21- protected _events : AuthenticatorEvents ;
21+ private _events : AuthenticatorEvents ;
2222
2323 public constructor ( auth : Authenticator , events : AuthenticatorEvents ) {
2424 this . _auth = auth ;
2525 this . _events = events ;
26+ this . _auth . authEvents = this . _events ;
2627 } ;
2728
2829 protected abstract _initForm ( ) : void ;
2930 protected abstract _disableForm ( ) : void ;
3031 protected abstract _enableForm ( ) : void ;
3132 protected abstract _wigglePasswordInput ( ) : void ;
3233 protected abstract _getInputToFocusOn ( ) : HTMLInputElement ;
34+
35+ public set authEvents ( events : AuthenticatorEvents ) {
36+ this . _events = events ;
37+ this . _auth . authEvents = this . _events ;
38+ }
3339}
You can’t perform that action at this time.
0 commit comments