remove returning password
This commit is contained in:
@@ -5,6 +5,6 @@ import "gorm.io/gorm"
|
|||||||
type User struct {
|
type User struct {
|
||||||
gorm.Model // includes ID, CreatedAt, UpdatedAt, DeletedAt
|
gorm.Model // includes ID, CreatedAt, UpdatedAt, DeletedAt
|
||||||
Username string `gorm:"uniqueIndex"`
|
Username string `gorm:"uniqueIndex"`
|
||||||
Password []byte
|
Password []byte `json:"-"`
|
||||||
Admin bool
|
Admin bool
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user