CakeDC\Users\Controller\Traits\SocialTrait::socialEmail PHP Метод

socialEmail() публичный Метод

Render the social email form
public socialEmail ( ) : void
Результат void
    public function socialEmail()
    {
        if (!$this->request->session()->check(Configure::read('Users.Key.Session.social'))) {
            throw new NotFoundException();
        }
        $this->request->session()->delete('Flash.auth');
        if ($this->request->is('post')) {
            $validPost = $this->_validateRegisterPost();
            if (!$validPost) {
                $this->Flash->error(__d('CakeDC/Users', 'The reCaptcha could not be validated'));
                return;
            }
            $user = $this->Auth->identify();
            return $this->_afterIdentifyUser($user, true);
        }
    }
SocialTrait