mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 02:03:42 +08:00
fix: 修正前端 user_init_call 字段错误和用户注册初始化头像路径问题
This commit is contained in:
@@ -72,7 +72,7 @@ func (h *UserHandler) Register(c *gin.Context) {
|
||||
Username: data.Username,
|
||||
Password: utils.GenPassword(data.Password, salt),
|
||||
Nickname: fmt.Sprintf("极客学长@%d", utils.RandomNumber(5)),
|
||||
Avatar: "images/avatar/user.png",
|
||||
Avatar: "/images/avatar/user.png",
|
||||
Salt: salt,
|
||||
Status: true,
|
||||
ChatRoles: utils.JsonEncode(roleKeys),
|
||||
|
||||
Reference in New Issue
Block a user