Authentication Backend Supresses Some Exceptions
|Reported by:||dcramer||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When using custom backends we noticed that sometimes errors are supressed. One such error was an invalid arguments error for .create() on the default manager.
# throws an exception because it should be a dictionary, instead of a list. User.objects.create(*args)
The error above is supressed, and simply returns a failure on authenticate(), which can be a headache to debug.
Change History (5)
comment:1 Changed 6 years ago by jacob
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted