Fix old-format oauth data bugs.

This commit is contained in:
Yang Luo
2021-06-01 23:14:49 +08:00
parent 58c7a60220
commit 29049297d8
2 changed files with 23 additions and 4 deletions

View File

@ -154,6 +154,10 @@ func (c *ApiController) Login() {
if form.Method == "signup" {
user := object.GetUserByField(application.Organization, provider.Type, userInfo.Id)
if user == nil {
user = object.GetUserByField(application.Organization, provider.Type, userInfo.Username)
}
if user != nil {
//if object.IsForbidden(userId) {
// c.forbiddenAccountResp(userId)