diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 38112ec..2276e89 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -1207,6 +1207,8 @@ function user_authenticate($name, $password) { * session, saves the login timestamp, calls hook_user_login(), and generates a * new session. * + * The global $user object is replaced with the passed in account. + * * @param \Drupal\Core\Session\AccountInterface $account * The account to log in. *