Return proper errorcodes from auth plugin
authorMagnus Hagander <magnus@hagander.net>
Tue, 21 Apr 2015 12:46:02 +0000 (14:46 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 21 Apr 2015 12:46:02 +0000 (14:46 +0200)
commit071869e855a8fab2cccc2c8adf48f32ed1acbca6
treecbe92338a5d40bde161537f77f79d0492cd3d395
parent6e4f2d38d75259324f07ffc6be8cfb3f2572ab66
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.
pgcommitfest/auth.py