forked from External/greenlight
		
	display ldap error to help with troubleshooting
This commit is contained in:
		@@ -42,8 +42,11 @@ class SessionsController < ApplicationController
 | 
				
			|||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def auth_failure
 | 
					  def auth_failure
 | 
				
			||||||
 | 
					    puts params.inspect
 | 
				
			||||||
    if params[:message] == 'invalid_credentials'
 | 
					    if params[:message] == 'invalid_credentials'
 | 
				
			||||||
      redirect_to '/', flash: {danger: t('invalid_login') }
 | 
					      redirect_to '/', flash: {danger: t('invalid_login') }
 | 
				
			||||||
 | 
					    elsif params[:message] == 'ldap_error'
 | 
				
			||||||
 | 
					      redirect_to '/', flash: {danger: t('ldap_error') }
 | 
				
			||||||
    else
 | 
					    else
 | 
				
			||||||
      redirect_to '/'
 | 
					      redirect_to '/'
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -102,6 +102,7 @@ en-US:
 | 
				
			|||||||
    connect: Connect in real-time with others
 | 
					    connect: Connect in real-time with others
 | 
				
			||||||
    collaborate: Collaborate with friends
 | 
					    collaborate: Collaborate with friends
 | 
				
			||||||
    teach: Teach students online
 | 
					    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}
 | 
					  logged_in_description_html: You are logged in as %{link}
 | 
				
			||||||
  login: login
 | 
					  login: login
 | 
				
			||||||
  login_description: Want to record a meeting?
 | 
					  login_description: Want to record a meeting?
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user