core/login/tenant-id-setup.component.ts
selector | c8y-tenant-id-setup |
templateUrl | ./tenant-id-setup.component.html |
Properties |
Methods |
Outputs |
constructor(client: FetchClient, ui: AppStateService, loginService: LoginService, alert: AlertService, translateService: TranslateService)
|
||||||||||||||||||
Parameters :
|
onChangeView |
Type : EventEmitter
|
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
|
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>