Drupal Login Form Access

By

This article was published in the print magazine Drupal Watchdog, Volume 3 Issue 2, 2013-09, on page 14, by Tag1 Publishing. The magazine was distributed at Drupalcon Prague, 2013-09-23.

If the user login form on your website becomes unavailable accidentally, you can still reach the login page even if there are no links to it: Modify your browser's address by replacing everything after the domain name with "/user" (e.g., "http://example.com/user").

Once logged in, go to Structure > Blocks, find the "User login" block (probably now in the "Disabled" section), and move it to a region above.

You can even make the login block appear only to you (if desired): Click its "configure" link and set the visibility as shown here, but with your IP address.

User login block configuration
Figure 1. User login block configuration

Copyright © 2013 Michael J. Ross. All rights reserved.