update pack 3
user pass will be generated randomly upgrade all dependencies move add client buttom
This commit is contained in:
+1
-2
@@ -46,8 +46,7 @@ func (s *UserService) UpdateUser(id int, username string, password string) error
|
||||
db := database.GetDB()
|
||||
return db.Model(model.User{}).
|
||||
Where("id = ?", id).
|
||||
Update("username", username).
|
||||
Update("password", password).
|
||||
Updates(map[string]interface{}{"username": username, "password": password}).
|
||||
Error
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user