|
|
@ -39,6 +39,16 @@ class Auth::RegistrationsController < Devise::RegistrationsController
|
|
|
|
new_user_session_path
|
|
|
|
new_user_session_path
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def after_sign_in_path_for(_resource)
|
|
|
|
|
|
|
|
set_invite
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if @invite&.autofollow?
|
|
|
|
|
|
|
|
short_account_path(@invite.user.account)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
super
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def after_inactive_sign_up_path_for(_resource)
|
|
|
|
def after_inactive_sign_up_path_for(_resource)
|
|
|
|
new_user_session_path
|
|
|
|
new_user_session_path
|
|
|
|
end
|
|
|
|
end
|
|
|
|