mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Добавлен API вызов для получения активного Recaptcha public key
This commit is contained in:
		@@ -5,11 +5,17 @@ use yii\base\InvalidConfigException;
 | 
			
		||||
 | 
			
		||||
class Component extends \yii\base\Component {
 | 
			
		||||
 | 
			
		||||
    public $public;
 | 
			
		||||
 | 
			
		||||
    public $secret;
 | 
			
		||||
 | 
			
		||||
    public function init() {
 | 
			
		||||
        if ($this->secret === NULL) {
 | 
			
		||||
            throw new InvalidConfigException('');
 | 
			
		||||
        if ($this->public === null) {
 | 
			
		||||
            throw new InvalidConfigException('Public is required');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if ($this->secret === null) {
 | 
			
		||||
            throw new InvalidConfigException('Secret is required');
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user