| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 36 | public function login($email, $password, $remember = false) |
||
| 37 | { |
||
| 38 | if($remember){ |
||
| 39 | $remember = true; |
||
| 40 | } |
||
| 41 | |||
| 42 | $correct = $this->auth->attempt(['email' => $email, 'password' => $password], $remember); |
||
| 43 | |||
| 44 | if(!$correct){ |
||
| 45 | throw new AuthenticationFailedException(); |
||
| 46 | } |
||
| 47 | |||
| 48 | return $this->auth->user(); |
||
| 49 | } |
||
| 50 | |||
| 63 |