core/login/login.component.ts
selector | c8y-login |
templateUrl | ./login.component.html |
Properties |
Methods |
Inputs |
HostListeners |
constructor(loginService: LoginService, options: OptionsService, alert: AlertService, credentialsFromQueryParamsService: CredentialsFromQueryParamsService)
|
|||||||||||||||
Just DI.
Parameters :
|
name |
Type : string
|
keyup |
Arguments : '$event'
|
keyup(event: KeyboardEvent)
|
handleLoginTemplate | ||||
handleLoginTemplate(event)
|
||||
Parameters :
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
onkeyup | ||||||
onkeyup(event: KeyboardEvent)
|
||||||
Decorators :
@HostListener('keyup', ['$event'])
|
||||||
Parameters :
Returns :
void
|
reset |
reset()
|
Returns :
void
|
credentials |
Type : ICredentials
|
Default value : {}
|
currentView |
Type : LoginViews
|
Default value : LoginViews.None
|
disabled |
Default value : false
|
displayAlerts |
Type : boolean
|
Default value : false
|
LOGIN_VIEWS |
Default value : LoginViews
|
Public loginService |
Type : LoginService
|
<div
class="loading card fadeInUp animated shadow5"
*ngIf="currentView !== LOGIN_VIEWS.None"
[ngSwitch]="currentView"
>
<div class="card-block p-b-0">
<img class="mainlogo">
<c8y-credentials
*ngSwitchCase="LOGIN_VIEWS.Credentials"
(onChangeView)="handleLoginTemplate($event)"
></c8y-credentials>
<c8y-recover-password
*ngSwitchCase="LOGIN_VIEWS.RecoverPassword"
(onChangeView)="handleLoginTemplate($event)"
></c8y-recover-password>
<c8y-change-password
*ngSwitchCase="LOGIN_VIEWS.ChangePassword"
(onChangeView)="handleLoginTemplate($event)"
[credentials]="credentials"
></c8y-change-password>
<c8y-totp-auth
*ngSwitchCase="LOGIN_VIEWS.TotpChallenge"
(onCancel)="reset()"
[view]="currentView"
[credentials]="credentials"
>
</c8y-totp-auth>
<c8y-totp-auth
*ngSwitchCase="LOGIN_VIEWS.TotpSetup"
(onCancel)="reset()"
[view]="currentView"
[credentials]="credentials"
>
</c8y-totp-auth>
<c8y-sms-challenge
*ngSwitchCase="LOGIN_VIEWS.SmsChallenge"
(onCancel)="reset()"
[credentials]="credentials"
></c8y-sms-challenge>
<c8y-provide-phone-number
*ngSwitchCase="LOGIN_VIEWS.ProvidePhoneNumber"
(onCancel)="reset()"
(onChangeView)="handleLoginTemplate($event)"
[credentials]="credentials"
></c8y-provide-phone-number>
<c8y-tenant-id-setup
*ngSwitchCase="LOGIN_VIEWS.TenantIdSetup"
(onChangeView)="handleLoginTemplate($event)"
></c8y-tenant-id-setup>
<c8y-alert-outlet position="static"></c8y-alert-outlet>
</div>
</div>