Add login and auth
This commit is contained in:
1 parent
f92e22f142
commit
0fd45ea2bd
7 files changed
+206
-46
No files matched your search
@@ -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"`
|
||||
}
|
||||
Reference in new issue
Block a user