update security handling for user namespace
This commit is contained in:
@@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base
|
||||
layout :layout_by_resource
|
||||
|
||||
|
||||
#protect_from_forgery
|
||||
protect_from_forgery
|
||||
|
||||
private
|
||||
|
||||
@@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
def layout_by_resource
|
||||
if devise_controller?
|
||||
'theme1'
|
||||
session[:user_return_to] =~ /obtain_token/ ? 'obtain_token' : 'theme1'
|
||||
else
|
||||
"application"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user