ruby on rails - Using Devise, can I allow inactive users to still login but only to a landing page? -


as understand it, using devise, inactive users not allowed login, instead see inactive user message on login page. can change behavior user allowed login, see landing page?

you global before_action in applicationcontroller, redirecting logged in inactive users landing page.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -