Allow to sign up with OAuth.

This commit is contained in:
Yang Luo
2021-06-09 21:27:20 +08:00
parent 440aad2369
commit f672045b45
5 changed files with 97 additions and 52 deletions

View File

@ -49,7 +49,7 @@ func (c *ApiController) Unlink() {
return
}
object.ClearUserProperties(user, providerType)
object.ClearUserOAuthProperties(user, providerType)
object.LinkUserAccount(user, providerType, "")
resp = Response{Status: "ok", Msg: ""}