sane / sane-auth

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

Return res.badRequest in AuthController #4

Closed IanVS closed 9 years ago

IanVS commented 9 years ago

When an unknown user tries to log in, a badRequest is sent. However, the code continues to execute and errors out. It seems each res.badRequest should be replaced with return res.badRequest

See: https://github.com/Globegitter/sane-auth/blob/master/generate/templates/server/api/controllers/AuthController.js#L27-L48

mgenev commented 9 years ago

fixed now