Commit 03cc55db authored by mmozuras's avatar mmozuras

Force utf-8 encoding for ldap omniauth_info.name

parent 01bb42ae
......@@ -98,7 +98,7 @@ class User < ActiveRecord::Base
end
def self.find_for_ldap_auth(omniauth_info)
name = omniauth_info.name
name = omniauth_info.name.force_encoding("utf-8")
email = omniauth_info.email.downcase
if @user = User.find_by_email(email)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment