Advertisement
Guest User

Untitled

a guest
May 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. function login_post(){
  2. $request= json_decode(file_get_contents('php://input'), TRUE);
  3.  
  4. if(!$request->email || !$request->password ){
  5.  
  6. return $this->response(NULL, 400);
  7.  
  8. }else{
  9.  
  10. $email = $request->email;
  11. $password = $request->password;
  12. $data = $this->api_model->login($email,$password);
  13. return $this->response($data, 200);
  14.  
  15. }
  16.  
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement