Skip to content

Commit

Permalink
Fix unable login error when loginCI is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
c12simple committed Feb 24, 2022
1 parent abd6d00 commit 261d587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idm/user/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ func (s *sqlimpl) Bind(userName string, password string) (user *idm.User, e erro
object := results[0]
user = object.(*idm.User)
if s.loginCI {
if strings.EqualFold(user.Login, userName) {
if !strings.EqualFold(user.Login, userName) {
return nil, errors.NotFound(common.ServiceUser, "cannot find user %s", userName)
}
} else {
Expand Down

0 comments on commit 261d587

Please sign in to comment.