mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat: login via passkey
This commit is contained in:
parent
44c3180df7
commit
bdfbbd0e8f
37 changed files with 1529 additions and 643 deletions
13
model/passkey.go
Normal file
13
model/passkey.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package model
|
||||
|
||||
import "github.com/go-webauthn/webauthn/webauthn"
|
||||
|
||||
type Passkey struct {
|
||||
Model
|
||||
|
||||
Name string `json:"name"`
|
||||
UserID int `json:"user_id"`
|
||||
RawID string `json:"raw_id"`
|
||||
Credential *webauthn.Credential `json:"-" gorm:"serializer:json"`
|
||||
LastUsedAt int64 `json:"last_used_at" gorm:"default:0"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue