display ldap error to help with troubleshooting

This commit is contained in:
Josh 2017-07-07 10:32:01 -04:00
parent 43496a6cf1
commit 0040baecbf
2 changed files with 4 additions and 0 deletions

View File

@ -42,8 +42,11 @@ class SessionsController < ApplicationController
end
def auth_failure
puts params.inspect
if params[:message] == 'invalid_credentials'
redirect_to '/', flash: {danger: t('invalid_login') }
elsif params[:message] == 'ldap_error'
redirect_to '/', flash: {danger: t('ldap_error') }
else
redirect_to '/'
end

View File

@ -102,6 +102,7 @@ en-US:
connect: Connect in real-time with others
collaborate: Collaborate with friends
teach: Teach students online
ldap_error: Unable to connect to the LDAP server. Please check your LDAP configuration in the env file and ensure your server is running.
logged_in_description_html: You are logged in as %{link}
login: login
login_description: Want to record a meeting?