summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/user/user.install
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/user/user.install')
-rw-r--r--core/modules/user/user.install45
1 files changed, 0 insertions, 45 deletions
diff --git a/core/modules/user/user.install b/core/modules/user/user.install
index 99ede9e59b76..747e61253226 100644
--- a/core/modules/user/user.install
+++ b/core/modules/user/user.install
@@ -92,51 +92,6 @@ function user_install(): void {
}
/**
- * Implements hook_requirements().
- */
-function user_requirements($phase): array {
- if ($phase !== 'runtime') {
- return [];
- }
- $return = [];
-
- $result = (bool) \Drupal::entityQuery('user')
- ->accessCheck(FALSE)
- ->condition('uid', 0)
- ->range(0, 1)
- ->execute();
-
- if ($result === FALSE) {
- $return['anonymous user'] = [
- 'title' => t('Anonymous user'),
- 'description' => t('The anonymous user does not exist. See the <a href=":url">restore the anonymous (user ID 0) user record</a> for more information', [
- ':url' => 'https://www.drupal.org/node/1029506',
- ]),
- 'severity' => REQUIREMENT_WARNING,
- ];
- }
-
- $query = \Drupal::database()->select('users_field_data');
- $query->addExpression('LOWER(mail)', 'lower_mail');
- $query->isNotNull('mail');
- $query->groupBy('lower_mail');
- $query->having('COUNT(uid) > :matches', [':matches' => 1]);
- $conflicts = $query->countQuery()->execute()->fetchField();
-
- if ($conflicts > 0) {
- $return['conflicting emails'] = [
- 'title' => t('Conflicting user emails'),
- 'description' => t('Some user accounts have email addresses that differ only by case. For example, one account might have alice@example.com and another might have Alice@Example.com. See <a href=":url">Conflicting User Emails</a> for more information.', [
- ':url' => 'https://www.drupal.org/node/3486109',
- ]),
- 'severity' => REQUIREMENT_WARNING,
- ];
- }
-
- return $return;
-}
-
-/**
* Implements hook_update_last_removed().
*/
function user_update_last_removed(): int {