mirror of
https://github.com/System-End/cdn.git
synced 2026-04-19 16:18:17 +00:00
lawg in
This commit is contained in:
parent
77ce6315a5
commit
02d812e1f0
2 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ class ApplicationController < ActionController::Base
|
|||
def signed_in? = current_user.present?
|
||||
|
||||
def require_authentication!
|
||||
redirect_to login_path, alert: "Please sign in to continue." unless signed_in?
|
||||
redirect_to root_path, alert: "Please sign in to continue." unless signed_in?
|
||||
end
|
||||
|
||||
def impersonating? = false
|
||||
|
|
|
|||
|
|
@ -20,6 +20,6 @@ class SessionsController < ApplicationController
|
|||
end
|
||||
|
||||
def failure
|
||||
redirect_to login_path, alert: "Authentication failed: #{params[:message]}"
|
||||
redirect_to root_path, alert: "Authentication failed: #{params[:message]}"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue