mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-17 12:44:41 +03:00
update pack 3
user pass will be generated randomly upgrade all dependencies move add client buttom
This commit is contained in:
@@ -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