You are here

protected function SettingsTrait::isApprovalRequired in Social Auth 8.2

Same name and namespace in other branches
  1. 3.x src/SettingsTrait.php \Drupal\social_auth\SettingsTrait::isApprovalRequired()

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 SettingsTrait::isApprovalRequired()
UserAuthenticator::authenticateNewUser in src/User/UserAuthenticator.php
Authenticates and redirects new users in authentication process.

File

src/SettingsTrait.php, line 56

Class

SettingsTrait
Helper methods for Social Auth and Drupal settings.

Namespace

Drupal\social_auth

Code

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