forked from External/greenlight
		
	display ldap error to help with troubleshooting
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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?
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user