protected function SettingsTrait::isApprovalRequired in Social Auth 3.x
Same name and namespace in other branches
- 8.2 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_authCode
protected function isApprovalRequired() {
return $this->configFactory
->get('user.settings')
->get('register') == 'visitors_admin_approval';
}