about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-04 15:31:25 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-04 15:31:25 +0100
commit1bbcd71cd403da843e8a4a67926a4394b31a63fd (patch)
tree6f6189273c5f188753a363058f136bfd59d0ac34 /app
parent18f59df09e17981b9f30b631ceb509fed9b67683 (diff)
Fix #390 - fix redirect after sign-up (to login page instead of homepage)
Diffstat (limited to 'app')
-rw-r--r--app/controllers/auth/registrations_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb
index 60eb9905a..6ce4984bb 100644
--- a/app/controllers/auth/registrations_controller.rb
+++ b/app/controllers/auth/registrations_controller.rb
@@ -23,6 +23,10 @@ class Auth::RegistrationsController < Devise::RegistrationsController
     new_user_session_path
   end
 
+  def after_inactive_sign_up_path_for(_resource)
+    new_user_session_path
+  end
+
   def check_single_user_mode
     redirect_to root_path if Rails.configuration.x.single_user_mode
   end