-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove unnecessary width class (#10781)
- Loading branch information
Showing
1 changed file
with
70 additions
and
73 deletions.
There are no files selected for viewing
143 changes: 70 additions & 73 deletions
143
libs/angular/src/auth/components/two-factor-auth/two-factor-auth.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,76 @@ | ||
<form [bitSubmit]="submitForm" [formGroup]="formGroup" autocomplete="off"> | ||
<div class="tw-min-w-96"> | ||
<app-two-factor-auth-email | ||
(token)="token = $event" | ||
*ngIf="selectedProviderType === providerType.Email" | ||
/> | ||
<app-two-factor-auth-authenticator | ||
(token)="token = $event" | ||
*ngIf="selectedProviderType === providerType.Authenticator" | ||
/> | ||
<app-two-factor-auth-yubikey | ||
(token)="token = $event" | ||
*ngIf="selectedProviderType === providerType.Yubikey" | ||
/> | ||
<app-two-factor-auth-webauthn | ||
(token)="token = $event; submitForm()" | ||
*ngIf="selectedProviderType === providerType.WebAuthn" | ||
/> | ||
<app-two-factor-auth-duo | ||
(token)="token = $event; submitForm()" | ||
[providerData]="providerData" | ||
<app-two-factor-auth-email | ||
(token)="token = $event" | ||
*ngIf="selectedProviderType === providerType.Email" | ||
/> | ||
<app-two-factor-auth-authenticator | ||
(token)="token = $event" | ||
*ngIf="selectedProviderType === providerType.Authenticator" | ||
/> | ||
<app-two-factor-auth-yubikey | ||
(token)="token = $event" | ||
*ngIf="selectedProviderType === providerType.Yubikey" | ||
/> | ||
<app-two-factor-auth-webauthn | ||
(token)="token = $event; submitForm()" | ||
*ngIf="selectedProviderType === providerType.WebAuthn" | ||
/> | ||
<app-two-factor-auth-duo | ||
(token)="token = $event; submitForm()" | ||
[providerData]="providerData" | ||
*ngIf=" | ||
selectedProviderType === providerType.OrganizationDuo || | ||
selectedProviderType === providerType.Duo | ||
" | ||
#duoComponent | ||
/> | ||
<bit-form-control *ngIf="selectedProviderType != null"> | ||
<bit-label>{{ "rememberMe" | i18n }}</bit-label> | ||
<input type="checkbox" bitCheckbox formControlName="remember" /> | ||
</bit-form-control> | ||
<ng-container *ngIf="selectedProviderType == null"> | ||
<p bitTypography="body1">{{ "noTwoStepProviders" | i18n }}</p> | ||
<p bitTypography="body1">{{ "noTwoStepProviders2" | i18n }}</p> | ||
</ng-container> | ||
<div [hidden]="!showCaptcha()"> | ||
<iframe id="hcaptcha_iframe" height="80" sandbox="allow-scripts allow-same-origin"></iframe> | ||
</div> | ||
<!-- Buttons --> | ||
<div class="tw-flex tw-flex-col tw-space-y-2.5 tw-mb-3"> | ||
<button | ||
type="submit" | ||
buttonType="primary" | ||
bitButton | ||
bitFormButton | ||
*ngIf=" | ||
selectedProviderType != null && | ||
selectedProviderType !== providerType.WebAuthn && | ||
selectedProviderType !== providerType.Duo && | ||
selectedProviderType !== providerType.OrganizationDuo | ||
" | ||
> | ||
<span> <i class="bwi bwi-sign-in" aria-hidden="true"></i> {{ actionButtonText }} </span> | ||
</button> | ||
<button | ||
type="button" | ||
buttonType="primary" | ||
bitButton | ||
(click)="launchDuo()" | ||
*ngIf=" | ||
selectedProviderType === providerType.OrganizationDuo || | ||
selectedProviderType === providerType.Duo | ||
selectedProviderType === providerType.Duo || | ||
selectedProviderType === providerType.OrganizationDuo | ||
" | ||
#duoComponent | ||
/> | ||
<bit-form-control *ngIf="selectedProviderType != null"> | ||
<bit-label>{{ "rememberMe" | i18n }}</bit-label> | ||
<input type="checkbox" bitCheckbox formControlName="remember" /> | ||
</bit-form-control> | ||
<ng-container *ngIf="selectedProviderType == null"> | ||
<p bitTypography="body1">{{ "noTwoStepProviders" | i18n }}</p> | ||
<p bitTypography="body1">{{ "noTwoStepProviders2" | i18n }}</p> | ||
</ng-container> | ||
<hr /> | ||
<div [hidden]="!showCaptcha()"> | ||
<iframe id="hcaptcha_iframe" height="80" sandbox="allow-scripts allow-same-origin"></iframe> | ||
</div> | ||
<!-- <!-- Buttons --> | ||
<div class="tw-flex tw-flex-col tw-space-y-2.5 tw-mb-3"> | ||
<button | ||
type="submit" | ||
buttonType="primary" | ||
bitButton | ||
bitFormButton | ||
*ngIf=" | ||
selectedProviderType != null && | ||
selectedProviderType !== providerType.WebAuthn && | ||
selectedProviderType !== providerType.Duo && | ||
selectedProviderType !== providerType.OrganizationDuo | ||
" | ||
> | ||
<span> <i class="bwi bwi-sign-in" aria-hidden="true"></i> {{ actionButtonText }} </span> | ||
</button> | ||
<button | ||
type="button" | ||
buttonType="primary" | ||
bitButton | ||
(click)="launchDuo()" | ||
*ngIf=" | ||
selectedProviderType === providerType.Duo || | ||
selectedProviderType === providerType.OrganizationDuo | ||
" | ||
> | ||
<span> <i class="bwi bwi-sign-in" aria-hidden="true"></i> {{ "launchDuo" | i18n }}</span> | ||
</button> | ||
> | ||
<span> <i class="bwi bwi-sign-in" aria-hidden="true"></i> {{ "launchDuo" | i18n }}</span> | ||
</button> | ||
|
||
<a routerLink="/login" bitButton buttonType="secondary"> | ||
{{ "cancel" | i18n }} | ||
</a> | ||
</div> | ||
<div class="text-center"> | ||
<a bitLink href="#" appStopClick (click)="selectOtherTwofactorMethod()">{{ | ||
"useAnotherTwoStepMethod" | i18n | ||
}}</a> | ||
</div> | ||
<a routerLink="/login" bitButton buttonType="secondary"> | ||
{{ "cancel" | i18n }} | ||
</a> | ||
</div> | ||
<div class="text-center"> | ||
<a bitLink href="#" appStopClick (click)="selectOtherTwofactorMethod()">{{ | ||
"useAnotherTwoStepMethod" | i18n | ||
}}</a> | ||
</div> | ||
</form> |