Add login and auth

This commit is contained in:
MaxJa4
2024-01-16 22:15:26 +01:00
parent f92e22f142
commit 0fd45ea2bd
7 changed files with 206 additions and 46 deletions

7
models/user.go Normal file
View File

@@ -0,0 +1,7 @@
package models
type User struct {
Username string `json:"username" gorm:"primary_key"`
Password string `json:"password"`
Enabled bool `json:"enabled" default:"1"`
}