Skip to content
Snippets Groups Projects
Unverified Commit baff4a7c authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

If signed in, redirect autofollow invite to profile page (#7956)

Fix #7944
parent 32a4b524
No related branches found
No related tags found
No related merge requests found
......@@ -39,6 +39,16 @@ class Auth::RegistrationsController < Devise::RegistrationsController
new_user_session_path
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)
new_user_session_path
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment