|
|
|
@ -6,15 +6,27 @@
|
|
|
|
|
|
|
|
|
|
<div class="py-3" mat-dialog-content>
|
|
|
|
|
<div class="align-items-center d-flex flex-column">
|
|
|
|
|
<mat-form-field appearance="outline" class="without-hint w-100">
|
|
|
|
|
<mat-label i18n>Security Token</mat-label>
|
|
|
|
|
<textarea
|
|
|
|
|
cdkTextareaAutosize
|
|
|
|
|
matInput
|
|
|
|
|
type="text"
|
|
|
|
|
[(ngModel)]="data.accessToken"
|
|
|
|
|
></textarea>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<form class="w-100" (ngSubmit)="onLoginWithAccessToken()">
|
|
|
|
|
<mat-form-field appearance="outline" class="without-hint w-100">
|
|
|
|
|
<mat-label i18n>Security Token</mat-label>
|
|
|
|
|
<input
|
|
|
|
|
matInput
|
|
|
|
|
name="password"
|
|
|
|
|
[type]="isAccessTokenHidden ? 'password' : 'text'"
|
|
|
|
|
[(ngModel)]="data.accessToken"
|
|
|
|
|
/>
|
|
|
|
|
<button
|
|
|
|
|
mat-button
|
|
|
|
|
matSuffix
|
|
|
|
|
type="button"
|
|
|
|
|
(click)="isAccessTokenHidden = !isAccessTokenHidden"
|
|
|
|
|
>
|
|
|
|
|
<ion-icon
|
|
|
|
|
[name]="isAccessTokenHidden ? 'eye-outline' : 'eye-off-outline'"
|
|
|
|
|
></ion-icon>
|
|
|
|
|
</button>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</form>
|
|
|
|
|
<ng-container *ngIf="data.hasPermissionToUseSocialLogin">
|
|
|
|
|
<div class="my-3 text-center text-muted" i18n>or</div>
|
|
|
|
|
<div class="d-flex flex-column">
|
|
|
|
|