Adds 2 factor authentication method via second factor security keys over [web authn](https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API). Allows a user to authenticate a second factor on login, login-via-email, admin-login, and change password routes. Adds registration area within existing user second factor preferences to register multiple security keys. Supports both external (yubikey) and built-in (macOS/android fingerprint readers).
15 lines
420 B
Handlebars
15 lines
420 B
Handlebars
<div id="security-key">
|
|
{{d-button
|
|
action=action
|
|
icon="key"
|
|
id="security-key-authenticate-button"
|
|
label="login.security_key_authenticate"
|
|
type="button"
|
|
class='btn btn-large btn-primary'}}
|
|
<p>
|
|
{{#if otherMethodAllowed}}
|
|
<a href="" class="toggle-second-factor-method" {{action "useAnotherMethod"}}>{{ i18n 'login.security_key_alternative' }}</a>
|
|
{{/if}}
|
|
</p>
|
|
</div>
|