Redirect to sign in page after signup, this will show the correct flash message.

This commit is contained in:
Marin Jankovski 2014-07-04 14:19:59 +02:00
parent 1b76554125
commit 87f89bc970
1 changed files with 8 additions and 0 deletions

View File

@ -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?