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
|
||||
|
Reference in New Issue
Block a user