In my website drupal 5.5, new users can request an account, but the new account is created "blocked", then "admin" must enable it manually.

I found that, with drupal 5.5 (maybe 5.4 also?) when the admin enables the account, drupal also updates the "last access" field of the user. So, also if user still never logged in, the "last access" field is no more "never". I'm sure this didn't happen with drupal 5.3 (with 5.4 I still dont know, I will verify). Am I the only one with this problem?

Thanks

fb

Comments

francoud’s picture

OK - seems this is a.. feature? introduced with drupal 5.4 in user.module:

// Consider users created by an administrator as already logged in, so
// anonymous users can view the profile (if allowed).
if (empty($array['access']) && user_access('administer users')) {
$array['access'] = time();
}

These new lines are present twice in that module. They work not only
when admin creates user, but also when he modifies it.

Now my question is: how can I understand what user *never* really login?

AjK’s picture