Yii is a strong php framework with a lot of features . Modules are one of them . here is a yii user module to enable authentication in yii . yu can download this from here. Some of features of user module are given below

1)Login from User Name or Email,
2) Registration
3) Activation accounts.
4) Recovery password (send recovery key to user email)
5) User profile page
6) Manage Users
7) Manage Profile Fields
8) Profile field widget for view, edit and save data
9) Date widget (jQueryUI datepicker)
10) File upload widget
11) Profile Relation Widget

By default user module provide feature of login with email or username . But some users want only one functionality of login with email or username only . So for this we just need to customize the authenticate() function . replace the function with the below function .
file path: Protected/modules/user/compnent/UserIdentity.php

public function authenticate($type=null)
{
//~ if (strpos($this->username,"@")) {
$user=User::model()->notsafe()->findByAttributes(array('email'=>$this->username));
//~ } else {
//~ $user=User::model()->notsafe()->findByAttributes(array('username'=>$this->username));
//~ }
if($user===null)
//~ if (strpos($this->username,"@")) {
$this->errorCode=self::ERROR_EMAIL_INVALID;
//~ } else {
//~ $this->errorCode=self::ERROR_USERNAME_INVALID;
//~ }
else if(Yii::app()->getModule('user')->encrypting($this->password)!==$user->password)
$this->errorCode=self::ERROR_PASSWORD_INVALID;
else if($user->status==0&&Yii::app()->getModule('user')->loginNotActiv==false)
$this->errorCode=self::ERROR_STATUS_NOTACTIV;
else if($user->status==-1)
$this->errorCode=self::ERROR_STATUS_BAN;
else {
$this->_id=$user->id;
$this->username=$user->username;
$this->errorCode=self::ERROR_NONE;
}
}
return !$this->errorCode;
}

Now customize the function

public function authenticate($attribute,$params)
{
if(!$this->hasErrors())  // we only want to authenticate when no input errors
{
$identity=new UserIdentity($this->email,$this->password);  // pass email only
$identity->authenticate();
//...... other code
// .... other code	
}
}

optionally you can replace $username variable with $email .

http://codingbin.com/wp-content/uploads/2015/12/yii.jpghttp://codingbin.com/wp-content/uploads/2015/12/yii-150x150.jpgdevidframeworksphpYiiYii is a strong php framework with a lot of features . Modules are one of them . here is a yii user module to enable authentication in yii . yu can download this from here. Some of features of user module are given below 1)Login from User Name or...coding, php, wordpress, yii, cakephp, and  jquery

Are you want to get implementation help, or modify or extend the functionality of this script? Submit paid service request