summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-12-11 01:54:00 +0000
committerStan Hu <stanhu@gmail.com>2015-12-11 01:54:00 +0000
commit7bb8bb8520e0ce029011567cd700ae94099c9b96 (patch)
tree3724d549f31326061edd969802406829f7913258 /lib/api/entities.rb
parent0d5d1f0e6fcd80fcf42dc9ab84ef3d146e47dc91 (diff)
parentd8b3c3274c63d5fa62c441bac6e78a16e94422c3 (diff)
downloadgitlab-ce-7bb8bb8520e0ce029011567cd700ae94099c9b96.tar.gz
Merge branch 'auth_hash_fix' into 'master'
Expand character set of usernames created by Omniauth When a user is created by Omniauth, Gitlab tries to assign the username based on the information provided in the auth hash. If no nickname is present, it uses the part of the email address before the @. This portion of the email address is run through the `parameterize` method, presumably to convert Unicode characters to ASCII. `parameterize` strips out a number of characters that are valid in usernames. For example, `john.doe` is a valid Gitlab username, but parameterize will turn this into `john-doe`. Instead of `parameterize`, this merge request uses `normalize` to convert non-ascii characters. This allows all acceptable characters to be used when creating a username from an email address. See merge request !660
Diffstat (limited to 'lib/api/entities.rb')
0 files changed, 0 insertions, 0 deletions