mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Improve request validation.
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
type User struct {
|
||||
gorm.Model
|
||||
Username string
|
||||
Username string `gorm:"uniqueIndex;not null"`
|
||||
PasswordHash []byte
|
||||
IsAdmin bool
|
||||
CanUpload bool
|
||||
|
Reference in New Issue
Block a user