feat: login via passkey

This commit is contained in:
Jacky 2024-09-15 20:32:03 +08:00
parent 44c3180df7
commit bdfbbd0e8f
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
37 changed files with 1529 additions and 643 deletions

View file

@ -61,8 +61,8 @@ func InstallNginxUI(c *gin.Context) {
pwd, _ := bcrypt.GenerateFromPassword([]byte(json.Password), bcrypt.DefaultCost)
u := query.Auth
err = u.Create(&model.Auth{
u := query.User
err = u.Create(&model.User{
Name: json.Username,
Password: string(pwd),
})