62ef8ed57a
This is a rebase of #1618 in which @dave-atx added WebAuthn support. Closes #1618
22 lines
829 B
HTML
22 lines
829 B
HTML
{{ define "title"}}{{ t "page.webauthn_rename.title" }}{{ end }}
|
|
|
|
{{ define "content"}}
|
|
<section class="page-header">
|
|
<h1>{{ t "page.webauthn_rename.title" }}</h1>
|
|
</section>
|
|
|
|
<form action="{{ route "webauthnSave" "credentialHandle" .cred.HandleEncoded }}" method="post" autocomplete="off">
|
|
<input type="hidden" name="csrf" value="{{ .csrf }}">
|
|
|
|
{{ if .errorMessage }}
|
|
<div class="alert alert-error">{{ .errorMessage }}</div>
|
|
{{ end }}
|
|
|
|
<label for="form-title">{{ t "page.settings.webauthn.passkey_name" }}</label>
|
|
<input type="text" name="name" id="form-title" value="{{ .form.Name }}" autofocus>
|
|
|
|
<div class="buttons">
|
|
<button type="submit" class="button button-primary" data-label-loading="{{ t "form.submit.saving" }}">{{ t "action.update" }}</button>
|
|
</div>
|
|
</form>
|
|
{{ end }}
|