You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.4 KiB
43 lines
1.4 KiB
7 years ago
|
<h4 class="ui top attached header">
|
||
3 years ago
|
{{.i18n.Tr "settings.webauthn"}}
|
||
7 years ago
|
</h4>
|
||
|
<div class="ui attached segment">
|
||
3 years ago
|
<p>{{.i18n.Tr "settings.webauthn_desc" | Str2html}}</p>
|
||
3 years ago
|
<div class="ui key list">
|
||
3 years ago
|
{{range .WebAuthnCredentials}}
|
||
3 years ago
|
<div class="item">
|
||
|
<div class="right floated content">
|
||
3 years ago
|
<button class="ui red tiny button delete-button" data-modal-id="delete-registration" data-url="{{$.Link}}/webauthn/delete" data-id="{{.ID}}">
|
||
3 years ago
|
{{$.i18n.Tr "settings.delete_key"}}
|
||
|
</button>
|
||
|
</div>
|
||
|
<div class="content">
|
||
|
<strong>{{.Name}}</strong>
|
||
4 years ago
|
</div>
|
||
3 years ago
|
<span class="time">{{TimeSinceUnix .CreatedUnix $.Lang}}</span>
|
||
7 years ago
|
</div>
|
||
3 years ago
|
{{end}}
|
||
|
</div>
|
||
|
<div class="ui form">
|
||
|
{{.CsrfTokenHtml}}
|
||
|
<div class="required field">
|
||
3 years ago
|
<label for="nickname">{{.i18n.Tr "settings.webauthn_nickname"}}</label>
|
||
3 years ago
|
<input id="nickname" name="nickname" type="text" required>
|
||
7 years ago
|
</div>
|
||
3 years ago
|
<button id="register-webauthn" class="ui green button">{{svg "octicon-key"}} {{.i18n.Tr "settings.webauthn_register_key"}}</button>
|
||
3 years ago
|
</div>
|
||
7 years ago
|
</div>
|
||
|
|
||
3 years ago
|
{{template "user/auth/webauthn_error" .}}
|
||
7 years ago
|
|
||
|
<div class="ui small basic delete modal" id="delete-registration">
|
||
|
<div class="ui icon header">
|
||
4 years ago
|
{{svg "octicon-trash"}}
|
||
3 years ago
|
{{.i18n.Tr "settings.webauthn_delete_key"}}
|
||
7 years ago
|
</div>
|
||
|
<div class="content">
|
||
3 years ago
|
<p>{{.i18n.Tr "settings.webauthn_delete_key_desc"}}</p>
|
||
7 years ago
|
</div>
|
||
|
{{template "base/delete_modal_actions" .}}
|
||
|
</div>
|