File

core/login/login.component.ts

Implements

OnInit OnDestroy

Metadata

Index

Properties
Methods
Inputs
HostListeners

Constructor

constructor(loginService: LoginService, options: OptionsService, alert: AlertService, credentialsFromQueryParamsService: CredentialsFromQueryParamsService)

Just DI.

Parameters :
Name Type Optional
loginService LoginService No
options OptionsService No
alert AlertService No
credentialsFromQueryParamsService CredentialsFromQueryParamsService No

Inputs

name
Type : string

HostListeners

keyup
Arguments : '$event'
keyup(event: KeyboardEvent)

Methods

handleLoginTemplate
handleLoginTemplate(event)
Parameters :
Name Optional
event No
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void
ngOnInit
ngOnInit()
Returns : void
onkeyup
onkeyup(event: KeyboardEvent)
Decorators :
@HostListener('keyup', ['$event'])
Parameters :
Name Type Optional
event KeyboardEvent No
Returns : void
reset
reset()
Returns : void

Properties

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
loginViewParams
Type : CredentialsComponentParams | literal type
Default value : {}
<div
  class="loading card fadeInUp animated shadow5"
  *ngIf="currentView !== LOGIN_VIEWS.None"
  [ngSwitch]="currentView"
>
  <div class="card-block p-b-0">
    <img alt="" class="mainlogo">
    <c8y-credentials
      *ngSwitchCase="LOGIN_VIEWS.Credentials"
      (onChangeView)="handleLoginTemplate($event)"
      [loginViewParams]="loginViewParams"
    ></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>

results matching ""

    No results matching ""