mirror of
https://github.com/h44z/wg-portal.git
synced 2025-12-22 06:06:18 +00:00
fix user edit bug, allow to delete users from the database (#40)
This commit is contained in:
@@ -29,7 +29,7 @@ type User struct {
|
||||
// required fields
|
||||
Email string `gorm:"primaryKey" form:"email" binding:"required,email"`
|
||||
Source UserSource
|
||||
IsAdmin bool
|
||||
IsAdmin bool `form:"isadmin"`
|
||||
|
||||
// optional fields
|
||||
Firstname string `form:"firstname" binding:"required"`
|
||||
|
||||
Reference in New Issue
Block a user