Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Hinshaw <hinshaw.25@osu.edu>2015-05-14 18:46:48 +0300
committerCorey Hinshaw <hinshaw.25@osu.edu>2015-12-11 02:49:48 +0300
commitd8b3c3274c63d5fa62c441bac6e78a16e94422c3 (patch)
tree524e690b7164fc314a6953babbdd1b868a9a3cfc /lib/gitlab/o_auth
parent667065700bc2ef4c687043d9e6ef5eb500df09a3 (diff)
AuthHash should not parameterize email user
Diffstat (limited to 'lib/gitlab/o_auth')
-rw-r--r--lib/gitlab/o_auth/auth_hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/o_auth/auth_hash.rb b/lib/gitlab/o_auth/auth_hash.rb
index d94b104bbf8..ba31599432b 100644
--- a/lib/gitlab/o_auth/auth_hash.rb
+++ b/lib/gitlab/o_auth/auth_hash.rb
@@ -62,7 +62,7 @@ module Gitlab
# Get the first part of the email address (before @)
# In addtion in removes illegal characters
def generate_username(email)
- email.match(/^[^@]*/)[0].parameterize
+ email.match(/^[^@]*/)[0].mb_chars.normalize(:kd).gsub(/[^\x00-\x7F]/,'').to_s
end
def generate_temporarily_email(username)