diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -4,7 +4,7 @@ include MailHelperMethods - before_action :authenticate, :except => [:new, + before_action :check_valid_login, :except => [:new, :register, :confirm, :forget, @@ -14,7 +14,7 @@ :register, :forget, :retrieve_password] - before_action :authenticate, :profile_authorization, only: [:profile] + before_action :check_valid_login, :profile_authorization, only: [:profile] before_action :admin_authorization, only: [:stat, :toggle_activate, :toggle_enable]