File

core/login/tenant-id-setup.component.ts

Metadata

Index

Properties
Methods
Outputs

Constructor

constructor(client: FetchClient, ui: AppStateService, loginService: LoginService, alert: AlertService, translateService: TranslateService)
Parameters :
Name Type Optional
client FetchClient No
ui AppStateService No
loginService LoginService No
alert AlertService No
translateService TranslateService No

Outputs

onChangeView
Type : EventEmitter

Methods

redirectToCorrectDomain
redirectToCorrectDomain()

Redirects to tenant domain when login mode contains domain.

Returns : void
Async setupLoginMode
setupLoginMode()

Sets up login mode for particular tenant. In case of OAI-Secure will redirect user to tenant domain.

Returns : any

Properties

LOGIN_VIEWS
Default value : LoginViews
model
Type : object
Default value : { tenant: '' }
<form #tenantIdSetupForm="ngForm" role="form" class="loginForm" (ngSubmit)="setupLoginMode()" novalidate>
  <div class="legend form-block center" translate>
    Tenant setup
  </div>
  <c8y-form-group class="tenantField" id="tenantField">
    <label for="tenant" translate>Tenant ID</label>
    <input
      [(ngModel)]="model.tenant"
      #tenant="ngModel"
      type="text"
      name="tenant"
      id="tenant"
      autocapitalize="off"
      autocorrect="off"
      class="form-control"
      placeholder="{{ 'e.g.' | translate }} t12345"
      placeholder-no-required-hint
      required
    />
  </c8y-form-group>

  <button
    title="{{ 'Apply' | translate }}"
    type="submit"
    class="btn btn-primary btn-lg btn-block form-group"
    [disabled]="!tenantIdSetupForm.form.valid"
    translate
  >
    Apply
  </button>
</form>

results matching ""

    No results matching ""