forked from External/greenlight
		
	Display launcher errors in Greenlight (#742)
This commit is contained in:
		
				
					committed by
					
						
						Jesus Federico
					
				
			
			
				
	
			
			
			
						parent
						
							4d14c5fc23
						
					
				
				
					commit
					de81223413
				
			@@ -57,7 +57,11 @@ class SessionsController < ApplicationController
 | 
			
		||||
 | 
			
		||||
  # POST /auth/failure
 | 
			
		||||
  def omniauth_fail
 | 
			
		||||
    redirect_to root_path, alert: I18n.t(params[:message], default: I18n.t("omniauth_error"))
 | 
			
		||||
    if params[:message].nil?
 | 
			
		||||
      redirect_to root_path, alert: I18n.t("omniauth_error")
 | 
			
		||||
    else
 | 
			
		||||
      redirect_to root_path, alert: I18n.t("omniauth_specific_error", error: params["message"])
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  # GET /auth/ldap
 | 
			
		||||
 
 | 
			
		||||
@@ -333,6 +333,7 @@ en:
 | 
			
		||||
  name_update_success: Room name successfully changed!
 | 
			
		||||
  no_user_email_exists: There is no existing user with the email specified. Please make sure you typed it correctly.
 | 
			
		||||
  omniauth_error: An error occured while authenticating with omniauth. Please try again or contact an administrator!
 | 
			
		||||
  omniauth_specific_error: "%{error} occured while authenticating with omniauth. Please try again or contact an administrator!"
 | 
			
		||||
  pagy:
 | 
			
		||||
    nav:
 | 
			
		||||
      prev: "‹ Prev"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user