Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function check_password()
- {
- if (
- isset($_POST['username']) &&
- isset($_POST['password']) &&
- (($user = $this->manager_user->load_user_by_username(PPOST_STR('username'))) !== false) &&
- $this->manager_user->verify_user_password($user['id'], SOCIAL_ID, PPOST_STR('password'))
- )
- {
- $worker_key_data = new worker_key_data();
- $hash = md5($user['id'].$user['username'].time());
- $worker_key_data->save_data($hash, array($user['id'], PSERVER_STR('REMOVE_ADDR'), time()));
- return $hash;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement