mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-28 12:45:56 +01:00
Move non-action public method controller callback to private methods (#31933)
This commit is contained in:
parent
f3f06dafe3
commit
a397141d78
1 changed files with 5 additions and 5 deletions
|
@ -20,11 +20,6 @@ class Auth::SessionsController < Devise::SessionsController
|
|||
p.form_action(false)
|
||||
end
|
||||
|
||||
def check_suspicious!
|
||||
user = find_user
|
||||
@login_is_suspicious = suspicious_sign_in?(user) unless user.nil?
|
||||
end
|
||||
|
||||
def create
|
||||
super do |resource|
|
||||
# We only need to call this if this hasn't already been
|
||||
|
@ -101,6 +96,11 @@ class Auth::SessionsController < Devise::SessionsController
|
|||
|
||||
private
|
||||
|
||||
def check_suspicious!
|
||||
user = find_user
|
||||
@login_is_suspicious = suspicious_sign_in?(user) unless user.nil?
|
||||
end
|
||||
|
||||
def home_paths(resource)
|
||||
paths = [about_path, '/explore']
|
||||
|
||||
|
|
Loading…
Reference in a new issue