Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
line 380 .module:
if (isset($account->uid)) {
I thin this should read:
if ( (isset($account->uid)) && ($account->status==1) ) {
Comments
Comment #1
shafter CreditAttribution: shafter commentedFirst of all, thanks for reporting!
This doesn't seem to be a major problem, as the user is properly validated before login, and the validation fails if the user is blocked. A proper error message is also displayed in this case.
Your solution might display module error messages instead of the default, drupal ones. but would do that a bit faster. We will look into it, if the modification is needed.
Comment #2
StephenRobinson CreditAttribution: StephenRobinson commentedHi,
Cheers for not being offended, just realised as $account->status is not set for anonymous user, this would throw a php warning, this may work better...
Comment #3
partyka CreditAttribution: partyka commentedThis is a duplicate of https://www.drupal.org/node/1493244, marking as closed (duplicate)