After instalation is complete please set install property to false.

install/howTo

  • How to check if a user is active:
    Yii::app()->user->active; //type: boolean;
  • How to find a user primary email:
    Yii::app()->user->primaryEmail;
  • How to find a user status code:
    Yii::app()->user->status;
  • How to find a user status text:
    Yii::app()->user->statusText;
  • How to find a user last LogIn date:
    Yii::app()->user->lastLogIn;
  • How to find a user social status (if the user uses some social providers to log in in to his/hers account):
    Yii::app()->user->socialLogIn; // type array; see: Users:getSocialLogIn();
    so if a user is able to log in using some social providers, the following code will evaluate true:
    if( is_array($modelUsers->social_login) && array_intersect($modelUsers->social_login, Users::getSocialLogIn()) ){ // user is able to logIn using some social providers ... }
  • In settings you may add your Facebook App ID and Facebook secret in order to enable fecebook logIn.
  • How to include facebook logIn button:
    $this->widget('facebook_app', array(
        'appId'=>Yii::app()->getModule('bum')->fb_appId,
        'secret'=>Yii::app()->getModule('bum')->fb_secret,
        'text'=>'Sign in with <B>Facebook</B>',
        'target'=>'_self',
    ));
  • In settings you may add your Twitter Customer key and Customer secret in order to enable twitter logIn.
  • How to include twitter logIn button:
    $this->widget('twitter_app', array(
        'text'=>'Sign in with <B>Twitter</B>',
        'target'=>'_self',
    ));