Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function login_post(){
- $request= json_decode(file_get_contents('php://input'), TRUE);
- if(!$request->email || !$request->password ){
- return $this->response(NULL, 400);
- }else{
- $email = $request->email;
- $password = $request->password;
- $data = $this->api_model->login($email,$password);
- return $this->response($data, 200);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement