LDAP: Ignore case when searching for account by username
This commit is contained in:
parent
65093c619f
commit
450fa55f1c
@ -22,7 +22,7 @@ module User::LdapAuthenticable
|
||||
safe_username = safe_username.gsub(keys, replacement)
|
||||
end
|
||||
|
||||
resource = joins(:account).find_by(accounts: { username: safe_username })
|
||||
resource = joins(:account).find_by('accounts.username ILIKE ?', safe_username)
|
||||
|
||||
if resource.blank?
|
||||
resource = new(
|
||||
|
Loading…
x
Reference in New Issue
Block a user