Commit f72a5d11 authored by Valeriy Sizov's avatar Valeriy Sizov

Merge pull request #732 from mmozuras/ldap_name_utf8

Force utf-8 encoding for ldap omniauth_info.name
parents 2746be6c 03cc55db
......@@ -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