Fixes error when signing up new users. Fixes #624
This commit is contained in:
@@ -11,6 +11,7 @@ class Users::SessionsController < Devise::SessionsController
|
|||||||
private
|
private
|
||||||
|
|
||||||
def verifying_via_email?
|
def verifying_via_email?
|
||||||
|
return false unless resource.present?
|
||||||
stored_path = session[stored_location_key_for(resource)] || ""
|
stored_path = session[stored_location_key_for(resource)] || ""
|
||||||
stored_path[0..5] == "/email"
|
stored_path[0..5] == "/email"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user