/login.php POST Username

This endpoint will sign in users using username and password

Request

Parameter Type Description
username string the username of the user
pwd string this is the user's password.

Response Param Error

{
   "code":-9999,
   "msg":"Parameter Error"
}

Response Success

{
   "code":202,
   "msg":"Successfully logged in.",
   "user":42,
   "username":"danny",
   "email":"[email protected]"
}

Response Invalid Details

{
   "code":-302,
   "msg":"Invalid Username Password."
}