release version 2.0.8
This commit is contained in:
parent
af67434e7e
commit
6962834f37
@ -12,7 +12,7 @@
|
|||||||
"irc": "irc://irc.freenode.net/yii",
|
"irc": "irc://irc.freenode.net/yii",
|
||||||
"source": "https://github.com/yiisoft/yii2"
|
"source": "https://github.com/yiisoft/yii2"
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "stable",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.4.0",
|
"php": ">=5.4.0",
|
||||||
"yiisoft/yii2": ">=2.0.5",
|
"yiisoft/yii2": ">=2.0.5",
|
||||||
|
@ -16,6 +16,7 @@ class ContactForm extends Model
|
|||||||
public $body;
|
public $body;
|
||||||
public $verifyCode;
|
public $verifyCode;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array the validation rules.
|
* @return array the validation rules.
|
||||||
*/
|
*/
|
||||||
@ -43,7 +44,7 @@ class ContactForm extends Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends an email to the specified email address using the information collected by this model.
|
* Sends an email to the specified email address using the information collected by this model.
|
||||||
* @param string $email the target email address
|
* @param string $email the target email address
|
||||||
* @return boolean whether the model passes validation
|
* @return boolean whether the model passes validation
|
||||||
*/
|
*/
|
||||||
public function contact($email)
|
public function contact($email)
|
||||||
|
@ -7,6 +7,9 @@ use yii\base\Model;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* LoginForm is the model behind the login form.
|
* LoginForm is the model behind the login form.
|
||||||
|
*
|
||||||
|
* @property User|null $user This property is read-only.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
class LoginForm extends Model
|
class LoginForm extends Model
|
||||||
{
|
{
|
||||||
|
@ -27,6 +27,7 @@ class User extends \yii\base\Object implements \yii\web\IdentityInterface
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
*/
|
*/
|
||||||
@ -52,7 +53,7 @@ class User extends \yii\base\Object implements \yii\web\IdentityInterface
|
|||||||
/**
|
/**
|
||||||
* Finds user by username
|
* Finds user by username
|
||||||
*
|
*
|
||||||
* @param string $username
|
* @param string $username
|
||||||
* @return static|null
|
* @return static|null
|
||||||
*/
|
*/
|
||||||
public static function findByUsername($username)
|
public static function findByUsername($username)
|
||||||
@ -93,7 +94,7 @@ class User extends \yii\base\Object implements \yii\web\IdentityInterface
|
|||||||
/**
|
/**
|
||||||
* Validates password
|
* Validates password
|
||||||
*
|
*
|
||||||
* @param string $password password to validate
|
* @param string $password password to validate
|
||||||
* @return boolean if password provided is valid for current user
|
* @return boolean if password provided is valid for current user
|
||||||
*/
|
*/
|
||||||
public function validatePassword($password)
|
public function validatePassword($password)
|
||||||
|
Loading…
Reference in New Issue
Block a user