Login Lock settings
Login Lock status

Login Lock (login_lock) module allows to force logout users during enabled login lock and prevent login for configured users roles.

Sometime when you plan to deploy you don't want to close your site in "maintenance mode" because you want to allow visitors to read content. Instead, you can log out all users and disable authorization on the site during deployment using this module.

Features

  • Logout all users (except users with roles able to bypass login lock) when enabled Login Lock and redirect to configured page.
  • When user try to authorize show message about site in maintenance mode and user should try login later.

Usage

  1. Enable module
  2. Go to module settings page (/admin/config/people/login-lock/settings) and configure module
  3. Go to Login Lock status form (/admin/config/people/login-lock) and enable Login Lock. Or you can use drush command drush login-lock-status 1 for enable Login lock.
  4. As result users without permission to bypass login lock won’t be able to login. Also they will be automatically logged out and redirected to configured page.
  5. For disable login lock go to Login Lock status form (/admin/config/people/login-lock) and disable Login Lock. Or you can use drush command drush login-lock-status 0 for disable Login Lock.

Drush commands:

drush login-lock-status 1 to enable login lock.
drush login-lock-status 0 to disable login lock.

Supporting organizations: 

Project information

Releases