Fixes issue when a user does login without stored path

This commit is contained in:
kikito
2015-10-06 18:48:57 +02:00
parent 615527b532
commit 984ecd80f4

View File

@@ -12,7 +12,7 @@ class Users::SessionsController < Devise::SessionsController
def stored_path_allows_welcome_screen? def stored_path_allows_welcome_screen?
stored_path = session[stored_location_key_for(resource)] stored_path = session[stored_location_key_for(resource)]
stored_path[0..5] != "/email" stored_path && stored_path[0..5] != "/email"
end end
end end