Redirect to sign in page after signup, this will show the correct flash message.
This commit is contained in:
parent
1b76554125
commit
87f89bc970
|
@ -15,6 +15,14 @@ class RegistrationsController < Devise::RegistrationsController
|
|||
super
|
||||
end
|
||||
|
||||
def after_sign_up_path_for resource
|
||||
new_user_session_path
|
||||
end
|
||||
|
||||
def after_inactive_sign_up_path_for resource
|
||||
new_user_session_path
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def signup_enabled?
|
||||
|
|
Loading…
Reference in New Issue