web/flows: fix missing padding on authenticator_validate card (#13420)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -70,52 +70,57 @@ export class AuthenticatorValidateStageWebCode extends BaseDeviceStage<
|
|||||||
return html`<ak-empty-state loading> </ak-empty-state>`;
|
return html`<ak-empty-state loading> </ak-empty-state>`;
|
||||||
}
|
}
|
||||||
return html`<div class="pf-c-login__main-body">
|
return html`<div class="pf-c-login__main-body">
|
||||||
<form
|
<form
|
||||||
class="pf-c-form"
|
class="pf-c-form"
|
||||||
@submit=${(e: Event) => {
|
@submit=${(e: Event) => {
|
||||||
this.submitForm(e);
|
this.submitForm(e);
|
||||||
}}
|
}}
|
||||||
>
|
|
||||||
${this.renderUserInfo()}
|
|
||||||
<div class="icon-description">
|
|
||||||
<i class="fa ${this.deviceIcon()}" aria-hidden="true"></i>
|
|
||||||
<p>${this.deviceMessage()}</p>
|
|
||||||
</div>
|
|
||||||
<ak-form-element
|
|
||||||
label="${this.deviceChallenge?.deviceClass === DeviceClassesEnum.Static
|
|
||||||
? msg("Static token")
|
|
||||||
: msg("Authentication code")}"
|
|
||||||
required
|
|
||||||
class="pf-c-form__group"
|
|
||||||
.errors=${(this.challenge?.responseErrors || {})["code"]}
|
|
||||||
>
|
>
|
||||||
<!-- @ts-ignore -->
|
${this.renderUserInfo()}
|
||||||
<input
|
<div class="icon-description">
|
||||||
type="text"
|
<i class="fa ${this.deviceIcon()}" aria-hidden="true"></i>
|
||||||
name="code"
|
<p>${this.deviceMessage()}</p>
|
||||||
inputmode="${this.deviceChallenge?.deviceClass === DeviceClassesEnum.Static
|
</div>
|
||||||
? "text"
|
<ak-form-element
|
||||||
: "numeric"}"
|
label="${this.deviceChallenge?.deviceClass === DeviceClassesEnum.Static
|
||||||
pattern="${this.deviceChallenge?.deviceClass === DeviceClassesEnum.Static
|
? msg("Static token")
|
||||||
? "[0-9a-zA-Z]*"
|
: msg("Authentication code")}"
|
||||||
: "[0-9]*"}"
|
|
||||||
placeholder="${msg("Please enter your code")}"
|
|
||||||
autofocus=""
|
|
||||||
autocomplete="one-time-code"
|
|
||||||
class="pf-c-form-control"
|
|
||||||
value="${PasswordManagerPrefill.totp || ""}"
|
|
||||||
required
|
required
|
||||||
/>
|
class="pf-c-form__group"
|
||||||
</ak-form-element>
|
.errors=${(this.challenge?.responseErrors || {})["code"]}
|
||||||
|
>
|
||||||
|
<!-- @ts-ignore -->
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="code"
|
||||||
|
inputmode="${this.deviceChallenge?.deviceClass ===
|
||||||
|
DeviceClassesEnum.Static
|
||||||
|
? "text"
|
||||||
|
: "numeric"}"
|
||||||
|
pattern="${this.deviceChallenge?.deviceClass ===
|
||||||
|
DeviceClassesEnum.Static
|
||||||
|
? "[0-9a-zA-Z]*"
|
||||||
|
: "[0-9]*"}"
|
||||||
|
placeholder="${msg("Please enter your code")}"
|
||||||
|
autofocus=""
|
||||||
|
autocomplete="one-time-code"
|
||||||
|
class="pf-c-form-control"
|
||||||
|
value="${PasswordManagerPrefill.totp || ""}"
|
||||||
|
required
|
||||||
|
/>
|
||||||
|
</ak-form-element>
|
||||||
|
|
||||||
<div class="pf-c-form__group pf-m-action">
|
<div class="pf-c-form__group pf-m-action">
|
||||||
<button type="submit" class="pf-c-button pf-m-primary pf-m-block">
|
<button type="submit" class="pf-c-button pf-m-primary pf-m-block">
|
||||||
${msg("Continue")}
|
${msg("Continue")}
|
||||||
</button>
|
</button>
|
||||||
${this.renderReturnToDevicePicker()}
|
${this.renderReturnToDevicePicker()}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>`;
|
</div>
|
||||||
|
<footer class="pf-c-login__main-footer">
|
||||||
|
<ul class="pf-c-login__main-footer-links"></ul>
|
||||||
|
</footer>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user