OSDN Git Service

Improve handling of misconfigured LDAP accounts.
authorPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 16 Jul 2012 22:31:28 +0000 (23:31 +0100)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 16 Jul 2012 22:31:28 +0000 (23:31 +0100)
commitf322975c506966e080e58dd3eb0c38b22183415a
treef08241304a97c6a6744b5c87b1f2d75a5bbfcf27
parent2a705c4f40a32b1313952a212e92a5d8c5407fc6
Improve handling of misconfigured LDAP accounts.

Gitlab requires an email address for all user accounts as this is the
default account id and is used for sending notifications. LDAP accounts
may be missing email fields so handle this by showing a sensible error
message before redirecting to the login screen again.

Resolves github issue #899

Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
app/controllers/omniauth_callbacks_controller.rb
app/models/user.rb