| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class Password |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * User hash check |
||
| 28 | * |
||
| 29 | * @param User $user |
||
| 30 | * @param $cookie_hash |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | 2 | public static function checkCookieHash(User $user, $cookie_hash) |
|
| 34 | { |
||
| 35 | 2 | return $user->getCookieHash() === $cookie_hash; |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * User password check in ajax-authentication |
||
| 40 | * |
||
| 41 | * @param User $user User |
||
| 42 | * @param string $password Password retrieved through ajax |
||
| 43 | * |
||
| 44 | * @deprecated |
||
| 45 | * |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | 2 | public static function check(User $user, $password) |
|
| 51 | } |
||
| 52 | } |
||
| 53 |