Create a function for handling the login request.
Password must go through password_verify($password, $hash) function before the user is valid and logged in.
Must return a success or error response.
Success response must include the user details minus the password (do not include password in the response)
Create a function for handling the login request. Password must go through password_verify($password, $hash) function before the user is valid and logged in. Must return a success or error response. Success response must include the user details minus the password (do not include password in the response)