fix 2fa keep

This commit is contained in:
_Bastler 2023-12-15 09:07:28 +01:00
parent bd671a987c
commit 30bed7245f

View File

@ -27,10 +27,10 @@
{{'security.2fa.missing' | i18n}}
</mat-error>
</mat-form-field>
<mat-slide-toggle #toggle [checked]="keep">
<mat-slide-toggle #toggle *ngIf="keep" [checked]="true" [disabled]="true">
{{'security.2fa.keepSession' | i18n}}
</mat-slide-toggle>
<input class="hidden" type="checkbox" id="keep" name="keep" [checked]="toggle.checked">
<input class="hidden" type="checkbox" id="keep" name="keep" [checked]="keep">
</mat-card-content>
<mat-card-actions>
<a type="submit" mat-raised-button color="primary" (click)="form2FA.submit()"