mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-20 08:03:55 +08:00
* feat: Add passkey authentication support with registration and login endpoints * style: Refactor import statements and improve button formatting in login and settings views * chore: Update dependencies in go.mod and go.sum, including adding go-webauthn and updating indirect dependencies * refactor: Consolidate passkey session management and update related structures for improved clarity and functionality * feat: Add passkey support in multiple languages with corresponding error messages and management options * feat: Implement passkey reset command and enhance internationalization support for passkey-related messages * refactor: Simplify login form structure by removing commented sections and unused passkey login function * fix: Update passkey failure messages across multiple languages to include SSL certificate verification instructions * chore: update go mod * refactor: Update passkey handling by consolidating status checks and renaming related fields for clarity * style: Format i18n file * refactor: Enhance passkey configuration checks
13 lines
405 B
Go
13 lines
405 B
Go
package passkey
|
|
|
|
import "github.com/go-webauthn/webauthn/webauthn"
|
|
|
|
type PasskeyCredentialRecord struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
CreatedAt string `json:"createdAt"`
|
|
LastUsedAt string `json:"lastUsedAt"`
|
|
FlagsValue uint8 `json:"flagsValue"`
|
|
Credential webauthn.Credential `json:"credential"`
|
|
}
|