62ef8ed57a
This is a rebase of #1618 in which @dave-atx added WebAuthn support. Closes #1618
20 lines
467 B
Go
20 lines
467 B
Go
// 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"),
|
|
}
|
|
}
|