Use user.GetId()

This commit is contained in:
Yang Luo
2022-07-30 17:40:30 +08:00
parent 155660b0d7
commit 11695220a8
2 changed files with 3 additions and 3 deletions

View File

@ -217,7 +217,7 @@ func (c *ApiController) Signup() {
record.User = user.Name
util.SafeGoroutine(func() { object.AddRecord(record) })
userId := fmt.Sprintf("%s/%s", user.Owner, user.Name)
userId := user.GetId()
util.LogInfo(c.Ctx, "API: [%s] is signed up as new user", userId)
c.ResponseOk(userId)