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).
14 lines
350 B
Handlebars
14 lines
350 B
Handlebars
<div id="second-factor">
|
|
<h3>{{secondFactorTitle}}</h3>
|
|
{{#if optionalText}}
|
|
<p>{{{optionalText}}}</p>
|
|
{{/if}}
|
|
<p>{{secondFactorDescription}}</p>
|
|
{{yield}}
|
|
{{#if showToggleMethodLink}}
|
|
<p>
|
|
<a href="" class="toggle-second-factor-method" {{action "toggleSecondFactorMethod"}}>{{ i18n linkText }}</a>
|
|
</p>
|
|
{{/if}}
|
|
</div>
|