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.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <address> <area> <blockquote> <br> <cite> <code> <dd> <div> <dl> <dt> <em> <fieldset> <h1> <h2> <h3> <h4> <h5> <h6> <hr> <img> <input> <li> <map> <ol> <p> <pre> <span> <strong> <sup> <u> <ul>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
8 + 7 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.