Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1.     private function check_password()
  2.     {
  3.         if (
  4.             isset($_POST['username']) &&
  5.             isset($_POST['password']) &&
  6.             (($user = $this->manager_user->load_user_by_username(PPOST_STR('username'))) !== false) &&
  7.             $this->manager_user->verify_user_password($user['id'], SOCIAL_ID, PPOST_STR('password'))
  8.         )
  9.         {
  10.             $worker_key_data = new worker_key_data();
  11.             $hash = md5($user['id'].$user['username'].time());
  12.             $worker_key_data->save_data($hash, array($user['id'], PSERVER_STR('REMOVE_ADDR'), time()));
  13.             return $hash;
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement