2023-06-07 07:20:18 -04:00
|
|
|
<h4 class="ui top attached header">{{.locale.Tr "settings.webauthn"}}</h4>
|
2018-05-19 10:12:37 -04:00
|
|
|
<div class="ui attached segment">
|
2022-06-27 16:58:46 -04:00
|
|
|
<p>{{.locale.Tr "settings.webauthn_desc" | Str2html}}</p>
|
2023-06-06 01:29:37 -04:00
|
|
|
{{template "user/auth/webauthn_error" .}}
|
2021-11-08 17:47:19 -05:00
|
|
|
<div class="ui key list">
|
2022-01-14 10:03:31 -05:00
|
|
|
{{range .WebAuthnCredentials}}
|
2021-11-08 17:47:19 -05:00
|
|
|
<div class="item">
|
|
|
|
<div class="right floated content">
|
2022-01-14 10:03:31 -05:00
|
|
|
<button class="ui red tiny button delete-button" data-modal-id="delete-registration" data-url="{{$.Link}}/webauthn/delete" data-id="{{.ID}}">
|
2022-06-27 16:58:46 -04:00
|
|
|
{{$.locale.Tr "settings.delete_key"}}
|
2021-11-08 17:47:19 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<strong>{{.Name}}</strong>
|
2021-04-10 23:46:37 -04:00
|
|
|
</div>
|
2022-06-27 16:58:46 -04:00
|
|
|
<span class="time">{{TimeSinceUnix .CreatedUnix $.locale}}</span>
|
2018-05-19 10:12:37 -04:00
|
|
|
</div>
|
2021-11-08 17:47:19 -05:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div class="ui form">
|
|
|
|
<div class="required field">
|
2022-06-27 16:58:46 -04:00
|
|
|
<label for="nickname">{{.locale.Tr "settings.webauthn_nickname"}}</label>
|
2021-11-08 17:47:19 -05:00
|
|
|
<input id="nickname" name="nickname" type="text" required>
|
2018-05-19 10:12:37 -04:00
|
|
|
</div>
|
2022-06-27 16:58:46 -04:00
|
|
|
<button id="register-webauthn" class="ui green button">{{svg "octicon-key"}} {{.locale.Tr "settings.webauthn_register_key"}}</button>
|
2021-11-08 17:47:19 -05:00
|
|
|
</div>
|
2018-05-19 10:12:37 -04:00
|
|
|
</div>
|
|
|
|
|
2023-04-24 07:08:59 -04:00
|
|
|
<div class="ui g-modal-confirm delete modal" id="delete-registration">
|
2023-04-23 05:24:19 -04:00
|
|
|
<div class="header">
|
2021-03-22 00:04:19 -04:00
|
|
|
{{svg "octicon-trash"}}
|
2022-06-27 16:58:46 -04:00
|
|
|
{{.locale.Tr "settings.webauthn_delete_key"}}
|
2018-05-19 10:12:37 -04:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
2022-06-27 16:58:46 -04:00
|
|
|
<p>{{.locale.Tr "settings.webauthn_delete_key_desc"}}</p>
|
2018-05-19 10:12:37 -04:00
|
|
|
</div>
|
2023-04-23 05:24:19 -04:00
|
|
|
{{template "base/modal_actions_confirm" .}}
|
2018-05-19 10:12:37 -04:00
|
|
|
</div>
|