Return proper errorcodes from auth plugin
authorMagnus Hagander <magnus@hagander.net>
Tue, 21 Apr 2015 12:48:51 +0000 (14:48 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 21 Apr 2015 12:48:51 +0000 (14:48 +0200)
commit6f640d0f129f27295795dab4a51788418ea59a87
treea351b1b20583d8553697ef649163e4793daff00e
parentce87b8a0999ebfb15340c2d8e65e672da914bb20
Return proper errorcodes from auth plugin

Instead of raising an exception which will cause both a server log
and an email to be sent, return a proper http 400 message when the
incoming authentication request is bad. This will also show the
proper error message to the client, instead of a generic internal
server error.
hamnadmin/auth.py