forked from External/greenlight
GRN2-xx: General bug fixes and performance upgrades (#734)
* General bug fixes and performance upgrades * Removed unused lines
This commit is contained in:
committed by
Jesus Federico
parent
4d69d06ba1
commit
98405c7d86
@ -36,7 +36,7 @@ class SessionsController < ApplicationController
|
||||
user = admin
|
||||
else
|
||||
user = User.find_by(email: session_params[:email], provider: @user_domain)
|
||||
redirect_to(signin_path, alert: I18n.t("invalid_user")) && return unless user
|
||||
redirect_to(signin_path, alert: I18n.t("invalid_credentials")) && return unless user
|
||||
redirect_to(root_path, alert: I18n.t("invalid_login_method")) && return unless user.greenlight_account?
|
||||
redirect_to(account_activation_path(email: user.email)) && return unless user.activated?
|
||||
end
|
||||
|
Reference in New Issue
Block a user