Commit a6f6d2b5 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Use UID instead of e-mail address as username

parent 3c240b7a
......@@ -82,7 +82,7 @@ module Gitlab
# Get the first part of the email address (before @)
# In addition in removes illegal characters
def generate_username(email)
email.match(/^[^@]*/)[0].mb_chars.normalize(:kd).gsub(/[^\x00-\x7F]/, '').to_s
auth_hash.uid.to_s
end
def generate_temporarily_email(username)
......
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