mirror of
https://github.com/miniflux/v2.git
synced 2024-08-18 10:23:27 +02:00
21 lines
467 B
Go
21 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"),
|
||
|
}
|
||
|
}
|