Give better error message when invalid data is passed to cauth in d param
authorMagnus Hagander <magnus@hagander.net>
Fri, 15 Aug 2025 12:26:43 +0000 (14:26 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 27 Aug 2025 14:11:54 +0000 (16:11 +0200)
commitc0b725c0756eabeb944ef72b03268d45a65715d0
treea381309ddbafabd350f341ff03a2d62be21abbd1
parente54c328ebfa1a4d9407d38684bce981c56b0c218
Give better error message when invalid data is passed to cauth in d param

Int he sample cauth provider for django, the incoming data in the 'd'
parameter is supposed to be the three parts required to do a SIV
decryption of it. But if somebody is sitting on an old link or ends up
going through history or something like that it can end up with just two
parameters since that's what the old version of the plugin uses. Instead
of crashing on that, give an error message so the user can just retry.
tools/communityauth/sample/django/auth.py