mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-07 07:09:46 +00:00
Update user.go
This commit is contained in:
parent
6c84c8ac90
commit
2e421b4441
@ -711,7 +711,7 @@ func Set_Name_Pwd(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
user := model2.UserDBModel{}
|
user := model2.UserDBModel{}
|
||||||
user.UserName = username
|
user.UserName = username
|
||||||
user.Password = encryption.GetMD5ByStr(config.UserInfo.PWD)
|
user.Password = encryption.GetMD5ByStr(pwd)
|
||||||
user.Role = "admin"
|
user.Role = "admin"
|
||||||
|
|
||||||
user = service.MyService.User().CreateUser(user)
|
user = service.MyService.User().CreateUser(user)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user