Return proper errorcodes in django auth plugin example
authorMagnus Hagander <magnus@hagander.net>
Tue, 21 Apr 2015 12:42:42 +0000 (14:42 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 8 Jul 2015 12:36:56 +0000 (13:36 +0100)
commita80790508c469a4f5c47947f23dd523f6c17df04
tree8d085a539ca78b99e2fb318f3925e590615e84ce
parentd15abdc3018663276a2491e6413fe18e7f15ec89
Return proper errorcodes in django auth plugin example

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.
tools/communityauth/sample/django/auth.py