Re: Accessing "request" from within an authentication backend

2011-07-26 Thread Scott Gould
I'd raise a custom exception (e.g. "PasswordExpiredError") and handle the message creation in the view. On Jul 26, 3:59 pm, Steven Smith wrote: > Is there a way to access the HttpResponse, or issue a redirect from > within a custom authentication backend? I have Django

Accessing "request" from within an authentication backend

2011-07-26 Thread Steven Smith
Is there a way to access the HttpResponse, or issue a redirect from within a custom authentication backend? I have Django hooked up to our Active Directory server, and it works perfectly except when the user's password expires or they have "User must change password at next login" set on their