|
|
@ -20,11 +20,6 @@ class Auth::SessionsController < Devise::SessionsController
|
|
|
|
p.form_action(false)
|
|
|
|
p.form_action(false)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def check_suspicious!
|
|
|
|
|
|
|
|
user = find_user
|
|
|
|
|
|
|
|
@login_is_suspicious = suspicious_sign_in?(user) unless user.nil?
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def create
|
|
|
|
def create
|
|
|
|
super do |resource|
|
|
|
|
super do |resource|
|
|
|
|
# We only need to call this if this hasn't already been
|
|
|
|
# We only need to call this if this hasn't already been
|
|
|
@ -101,6 +96,11 @@ class Auth::SessionsController < Devise::SessionsController
|
|
|
|
|
|
|
|
|
|
|
|
private
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def check_suspicious!
|
|
|
|
|
|
|
|
user = find_user
|
|
|
|
|
|
|
|
@login_is_suspicious = suspicious_sign_in?(user) unless user.nil?
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def home_paths(resource)
|
|
|
|
def home_paths(resource)
|
|
|
|
paths = [about_path, '/explore']
|
|
|
|
paths = [about_path, '/explore']
|
|
|
|
|
|
|
|
|
|
|
|