Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <mc.sanaei@gmail.com>2023-02-20 20:29:55 +0300
committerMHSanaei <mc.sanaei@gmail.com>2023-02-20 20:29:55 +0300
commitadd853fadaebeed99d2eadcf6ec2fa9396bf6ccd (patch)
treed55598f4ef7d0b812ff9a721a72aad7b2a298ded /web/service/user.go
parentd4c8b926d3a35e8b632ddd290599d3b344e13fc3 (diff)
update pack 3
user pass will be generated randomly upgrade all dependencies move add client buttom
Diffstat (limited to 'web/service/user.go')
-rw-r--r--web/service/user.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/service/user.go b/web/service/user.go
index e4e7572d..6da8bd1e 100644
--- a/web/service/user.go
+++ b/web/service/user.go
@@ -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
}