Commit 9a91355f by Tô Ngọc Ánh

fix redirect path name if is_admin

parent 55b2b499
Pipeline #1091 failed with stages
in 0 seconds
...@@ -26,7 +26,7 @@ class Users::SessionsController < Devise::SessionsController ...@@ -26,7 +26,7 @@ class Users::SessionsController < Devise::SessionsController
# end # end
def after_sign_in_path_for(resource) def after_sign_in_path_for(resource)
default_path = resource.admin ? admin_applied_jobs_path : my_page_path default_path = resource.admin ? search_applied_jobs_path : my_page_path
stored_location = stored_location_for(resource) stored_location = stored_location_for(resource)
stored_location == root_path ? default_path : stored_location stored_location == root_path ? default_path : stored_location
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment