mirror of
https://github.com/dkmstr/openuds-gui.git
synced 2024-12-21 13:33:48 +03:00
fixed mfa remember
This commit is contained in:
parent
4a1c6bc62d
commit
0e20f782ae
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user