1
0
mirror of https://github.com/dkmstr/openuds-gui.git synced 2024-12-22 17:33:48 +03:00

fixed mfa remember

This commit is contained in:
Adolfo Gómez García 2023-09-07 23:07:04 +02:00
parent 4a1c6bc62d
commit 0e20f782ae
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 5 additions and 5 deletions

View File

@ -20,12 +20,12 @@
<!-- checkbox for remember -->
<div class="mfa-field" *ngIf="api.config.mfa.remember_device > 0">
<div class="mfa-field" *ngIf="api.config.mfa.remember_device !== ''">
<mat-checkbox id="remember" name="remember">
<uds-translate>Remember Me</uds-translate>
<uds-translate>Remember me for {{ api.config.mfa.remember_device }}</uds-translate>
</mat-checkbox>
</div>
<input type="hidden" name="remember" value="0" *ngIf="api.config.mfa.remember_device <= 0"/>
<input type="hidden" name="remember" value="0" *ngIf="api.config.mfa.remember_device === ''"/>
<div class="mfa-button">
<button mat-stroked-button color="primary" type="submit">
@ -37,4 +37,4 @@
</form>
<div class="mfa-html-container">
<div class="mfa-html" [innerHtml]="api.config.mfa.html| safeHtml"></div>
</div>
</div>

View File

@ -43,7 +43,7 @@ export interface UDSMessages {
export interface MFAInfo {
label: string;
validity: number;
remember_device: number; // String indicaten the time the device will be remembered
remember_device: string; // String indicating the time the device will be remembered
html: string;
}