Created
December 31, 2014 19:22
-
-
Save evercode1/a7c4426968d2d6e42ce8 to your computer and use it in GitHub Desktop.
login Chap 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function login() | |
| { | |
| if ($this->validate() && $this->getUser()->status_id == ValueHelpers::getStatusValue('Active')) { | |
| return Yii::$app->user->login($this->getUser(), $this->rememberMe ? 3600 * 24 * 30 : 0); | |
| } else { | |
| return false; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment