sane / sane-auth

A Sane Stack Addon giving you basic JWT-OAuth2 authentication for the full stack
14 stars 4 forks source link

use 401 instead of 500/400 for empty logins #19

Open givanse opened 9 years ago

givanse commented 9 years ago

Loggin in without a user or password returns:

http://localhost:4200/api/v1/auths/login 500 (Internal Server Error)

Wrong user or password returns:

http://localhost:4200/api/v1/auths/login 400 (Bad Request)

It should have been a 401 Unauthorized