I use a custom login screen for the django site I'm working on, and users will be prompted with a CAPTCHA call each time they log in. (It seems that the excess that I know, but for a number of complex reasons, it is impossible to establish a decent password policy that leaves the log open for brute force attacks)
I want to be able to tell from within the view if it is called by the django testing client so that in this particular case it can ignore the answer with quotation marks.
Is there any way to do this? (Preferably one that does not rely on any unique request headers that can be set by the client, as they can be tampered with)
Thanks!
Andy source
share