Advertisement
Guest User

Untitled

a guest
Jun 17th, 2016
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public function __construct(UserService $userService, $username $password)
  2. {
  3. $this->username = $username;
  4. $this->password = $password;
  5. $this->user = $userService->fetchUser($username);
  6. }
  7.  
  8. public static function checkPassword()
  9. {
  10. if ($user->password == md5($this->password)) {
  11. return true;
  12. } else {
  13. return false;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement