You are here

protected function SocialAuthUserManager::isApprovalRequired in Social Auth 8

Checks if admin approval is required for new users.

Return value

bool True if approval is required False if approval is not required

1 call to SocialAuthUserManager::isApprovalRequired()
SocialAuthUserManager::authenticateNewUser in src/SocialAuthUserManager.php
Authenticates and redirects new users in authentication process.

File

src/SocialAuthUserManager.php, line 406

Class

SocialAuthUserManager
Contains all logic that is related to Drupal user management.

Namespace

Drupal\social_auth

Code

protected function isApprovalRequired() {
  if ($this->configFactory
    ->get('user.settings')
    ->get('register') == 'visitors_admin_approval') {
    return TRUE;
  }
  return FALSE;
}