update pack 3

user pass will be generated randomly
upgrade all dependencies
move add client buttom
This commit is contained in:
MHSanaei
2023-02-20 20:59:55 +03:30
parent d4c8b926d3
commit add853fada
14 changed files with 236 additions and 286 deletions

View File

@@ -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
}