aboutsummaryrefslogtreecommitdiff
path: root/internal/ui/form/webauthn.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ui/form/webauthn.go')
-rw-r--r--internal/ui/form/webauthn.go20
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"),
+ }
+}