mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-24 13:35:07 +01:00
Fix #390 - fix redirect after sign-up (to login page instead of homepage)
This commit is contained in:
parent
18f59df09e
commit
1bbcd71cd4
@ -23,6 +23,10 @@ class Auth::RegistrationsController < Devise::RegistrationsController
|
|||||||
new_user_session_path
|
new_user_session_path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def after_inactive_sign_up_path_for(_resource)
|
||||||
|
new_user_session_path
|
||||||
|
end
|
||||||
|
|
||||||
def check_single_user_mode
|
def check_single_user_mode
|
||||||
redirect_to root_path if Rails.configuration.x.single_user_mode
|
redirect_to root_path if Rails.configuration.x.single_user_mode
|
||||||
end
|
end
|
||||||
|
@ -20,8 +20,8 @@ RSpec.describe Auth::RegistrationsController, type: :controller do
|
|||||||
post :create, params: { user: { account_attributes: { username: 'test' }, email: 'test@example.com', password: '12345678', password_confirmation: '12345678' } }
|
post :create, params: { user: { account_attributes: { username: 'test' }, email: 'test@example.com', password: '12345678', password_confirmation: '12345678' } }
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'redirects to home page' do
|
it 'redirects to login page' do
|
||||||
expect(response).to redirect_to root_path
|
expect(response).to redirect_to new_user_session_path
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'creates user' do
|
it 'creates user' do
|
||||||
|
Loading…
Reference in New Issue
Block a user