Fix bug in update column names.

This commit is contained in:
Yang Luo
2021-05-09 16:14:05 +08:00
parent 6e5aa2bc40
commit 19c1ef1b68
3 changed files with 14 additions and 6 deletions

View File

@ -199,7 +199,7 @@ func (c *ApiController) Login() {
// sync info from 3rd-party if possible
if user.DisplayName == "" && userInfo.Username != "" {
object.SetUserField(user, "displayName", userInfo.Username)
object.SetUserField(user, "display_name", userInfo.Username)
}
if user.Avatar == "" && userInfo.AvatarUrl != "" {
object.SetUserField(user, "avatar", userInfo.AvatarUrl)