added social connection action

This commit is contained in:
Antonio Ramirez
2016-12-09 16:41:25 +01:00
parent f6dcb21205
commit 3fe09e3eb3
9 changed files with 400 additions and 155 deletions

View File

@ -10,6 +10,8 @@ class FormEvent extends Event
const EVENT_AFTER_REQUEST = 'afterRequest';
const EVENT_BEFORE_RESEND = 'beforeResend';
const EVENT_AFTER_RESEND = 'afterResend';
const EVENT_BEFORE_LOGIN = 'beforeLogin';
const EVENT_AFTER_LOGIN = 'afterLogin';
protected $form;

View File

@ -8,6 +8,11 @@ use yii\base\Event;
class SocialNetworkAuthEvent extends Event
{
const EVENT_BEFORE_AUTHENTICATE = 'beforeAuthenticate';
const EVENT_AFTER_AUTHENTICATE = 'afterAuthenticate';
const EVENT_BEFORE_CONNECT = 'beforeConnect';
const EVENT_AFTER_CONNECT = 'afterConnect';
protected $client;
protected $account;

View File

@ -18,6 +18,8 @@ class UserEvent extends Event
const EVENT_AFTER_UNBLOCK = 'afterUnblock';
const EVENT_BEFORE_BLOCK = 'beforeBlock';
const EVENT_AFTER_BLOCK = 'afterBlock';
const EVENT_BEFORE_LOGOUT = 'beforeLogout';
const EVENT_AFTER_LOGOUT = 'afterLogout';
protected $user;