diff --git a/models/user_openid.go b/models/user_openid.go index 5255b325008..49edc1db218 100644 --- a/models/user_openid.go +++ b/models/user_openid.go @@ -93,7 +93,7 @@ func DeleteUserOpenID(openid *UserOpenID) (err error) { // ToggleUserOpenIDVisibility toggles visibility of an openid address of given user. func ToggleUserOpenIDVisibility(id int64) (err error) { - _, err = x.Exec("update user_open_id set show = not show where id = ?", id) + _, err = x.Exec("update `user_open_id` set `show` = not `show` where `id` = ?", id) return err }