diff options
author | 2023-11-06 04:27:35 +1030 | |
---|---|---|
committer | 2023-11-05 18:57:35 +0100 | |
commit | 62ef8ed57aab9f2b05a64b153d231ae4f42769f4 (patch) | |
tree | acc33ab1fd02113f8fc93751e593dc67ff504a84 /internal/ui/form/webauthn.go | |
parent | 62188b49f072ea3c2bf30a8ed42f8b9303840191 (diff) | |
download | v2-62ef8ed57aab9f2b05a64b153d231ae4f42769f4.tar.gz v2-62ef8ed57aab9f2b05a64b153d231ae4f42769f4.tar.zst v2-62ef8ed57aab9f2b05a64b153d231ae4f42769f4.zip |
Add WebAuthn / Passkey integration
This is a rebase of #1618 in which @dave-atx added WebAuthn support.
Closes #1618
Diffstat (limited to 'internal/ui/form/webauthn.go')
-rw-r--r-- | internal/ui/form/webauthn.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/internal/ui/form/webauthn.go b/internal/ui/form/webauthn.go new file mode 100644 index 00000000..3f6a57db --- /dev/null +++ b/internal/ui/form/webauthn.go @@ -0,0 +1,20 @@ +// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 + +package form // import "miniflux.app/v2/internal/ui/form" + +import ( + "net/http" +) + +// WebauthnForm represents a credential rename form in the UI +type WebauthnForm struct { + Name string +} + +// NewWebauthnForm returns a new WebnauthnForm. +func NewWebauthnForm(r *http.Request) *WebauthnForm { + return &WebauthnForm{ + Name: r.FormValue("name"), + } +} |