Commit Graph

12 Commits

Author SHA1 Message Date
Marin Jankovski 314e4736e4 Strip apostrophe from email generated usernames. 2014-06-11 17:06:28 +02:00
Julien Pivotto 566badbaee Use uid as username when creating user with LDAP
Without that commit, each user created by a LDAP login would have the
first part of their email address as nickname.

This is not useful for LDAP, where a uid attribute is already set.
2014-05-12 07:30:35 +02:00
C. Morgan Hamill 0456101117 Clean up conditional statement in `name` method.
Reverse the conditional order to avoid awkward `if !` construction.
2014-05-08 09:23:17 -04:00
C. Morgan Hamill a45f7262f9 Clean up of `name` fallback code.
Don't use `unless` for the conditional.
Avoid double-quotes where possible.
2014-05-07 16:41:35 -04:00
C. Morgan Hamill 9e805b7754 Provide fallback for missing `name` value.
If `auth.info.name` is `nil`, then use `auth.info.first_name + auth.info.last_name`
as the value of `name`.
2014-05-07 16:33:54 -04:00
Dmitriy Zaporozhets e6f58cb87d
Avoid false validation when create user
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-07 16:47:37 +03:00
Dmitriy Zaporozhets 5436d6afd6
Make oauth works for google oauth too
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-07 16:36:33 +03:00
Dmitriy Zaporozhets a73df4f72d
Allow oauth signup without email
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-07 14:09:29 +03:00
Maxime Brugidou 2c4e3e001f Skip email confirmation with LDAP 2013-12-09 11:06:12 +01:00
Dmitriy Zaporozhets 2e8b0fa5cf Oauth users and users created by admin should be confirmed immediatly 2013-10-15 09:59:58 +03:00
Izaak Alpert 88d4559e62 Removed private scope
Change-Id: Ia723321a5cb05deb626d34c7d8d78194e049b1f0
2013-09-11 14:32:24 -04:00
Dmitriy Zaporozhets b45e92646e Added Gitlab::OAuth::User class
Authenticate or create users from OAuth providers
2013-09-04 00:04:27 +03:00