mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
fix: OAuth user id confusion caused by username (#785)
This commit is contained in:
@ -329,9 +329,6 @@ func (c *ApiController) Login() {
|
|||||||
if user == nil {
|
if user == nil {
|
||||||
user = object.GetUserByField(application.Organization, provider.Type, userInfo.Username)
|
user = object.GetUserByField(application.Organization, provider.Type, userInfo.Username)
|
||||||
}
|
}
|
||||||
if user == nil {
|
|
||||||
user = object.GetUserByField(application.Organization, "name", userInfo.Username)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if user != nil && user.IsDeleted == false {
|
if user != nil && user.IsDeleted == false {
|
||||||
|
Reference in New Issue
Block a user