Check http method.
Add return_forbidden function.
Syntax error.
login: reply with token.
Typo.
Typo.
login: Set content-type, index: add 404
Login: call API.
Typo url.
Display result.
Decode json.
SYntax error.
Plop.
Improve error code.
Parse POST json payload into array.
Remove useless stuff.
Updata user.php to new index.php.
Handle error.
Syntax error.
Syntax error.