Fixed issues with routing/urls for log in

• Fixed:
- issues with routing/urls for log in
This commit is contained in:
mgabdev
2020-06-15 16:37:45 -04:00
parent 42bc10198d
commit 5c96fad17a
2 changed files with 2 additions and 8 deletions

View File

@@ -52,13 +52,7 @@ class Auth::SessionsController < Devise::SessionsController
end
def after_sign_in_path_for(resource)
last_url = stored_location_for(:user)
if home_paths(resource).include?(last_url)
root_path
else
last_url || root_path
end
return '/home'
end
def after_sign_out_path_for(_resource_or_scope)