Re: Having trouble authenticating/validating

2009-06-02 Thread Karen Tracey
On Tue, Jun 2, 2009 at 9:42 AM, gsnyder2007 wrote: > > Had the same issue and the info below allowed me to resolve the issue, > i.e. is_valid() is now returning True on a valid username/password > combination. Seemed to me that the key was setting the test cookie and > assigning the POST data int

Re: Having trouble authenticating/validating

2009-06-02 Thread gsnyder2007
Had the same issue and the info below allowed me to resolve the issue, i.e. is_valid() is now returning True on a valid username/password combination. Seemed to me that the key was setting the test cookie and assigning the POST data into the 'data' variable. The former makes sense to me. The latte

Re: Having trouble authenticating/validating

2009-05-12 Thread adrian
Figured it out by looking at how the admin view using AuthenticationForm: In POST: loginForm = AuthenticationForm(data=request.POST) note the use of data= which I have not seen before in GET: loginForm = AuthenticationForm(request) request.session.set_test_cookie() note the passing

Re: Having trouble authenticating/validating

2009-05-12 Thread adrian
For the record, I am seeing the same problem. request.POST contains the correct values for username and password, yet is_valid returns false and the form does not include any error messages. I haven't gotten to the bottom of it yet but AuthenticationForm is not calling the clean() method. And I

Re: Having trouble authenticating/validating

2009-03-26 Thread Karen Tracey
On Thu, Mar 26, 2009 at 12:26 PM, Adam Yee wrote: > > {{ error }} > > {{ form.as_p }} > > > form.as_p ought to be showing the errors on the form. So I'm puzzled by how is_valid could be returning False but no errors are being displayed. > Guessing is sometimes all one can do after analyzin

Re: Having trouble authenticating/validating

2009-03-26 Thread Adam Yee
On Mar 25, 6:27 pm, Karen Tracey wrote: > On Tue, Mar 24, 2009 at 2:11 PM, Adam Yee wrote: > > So, I now pass the bound form, but still no validation error messages > > show up.  More importantly, is_valid is still returning false even > > when I try logging in as a super user.  I also removed c

Re: Having trouble authenticating/validating

2009-03-25 Thread Karen Tracey
On Tue, Mar 24, 2009 at 2:11 PM, Adam Yee wrote: > So, I now pass the bound form, but still no validation error messages > show up. More importantly, is_valid is still returning false even > when I try logging in as a super user. I also removed checking for > is_active since the AuthenticationF

Re: Having trouble authenticating/validating

2009-03-25 Thread Adam Yee
On Mar 23, 8:30 pm, Karen Tracey wrote: > On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee wrote: > > > I'm using Django's builtin AuthenticationForm > > > Here's my login view:http://dpaste.com/18110/ > > > Form submittal (not empty or empty fields) takes me back to the login > > page with 'Did not lo

Re: Having trouble authenticating/validating

2009-03-24 Thread Adam Yee
On Mar 23, 8:30 pm, Karen Tracey wrote: > On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee wrote: > > > I'm using Django's builtin AuthenticationForm > > > Here's my login view:http://dpaste.com/18110/ > > > Form submittal (not empty or empty fields) takes me back to the login > > page with 'Did not

Re: Having trouble authenticating/validating

2009-03-23 Thread Karen Tracey
On Mon, Mar 23, 2009 at 4:45 PM, Adam Yee wrote: > > I'm using Django's builtin AuthenticationForm > > Here's my login view: http://dpaste.com/18110/ > > Form submittal (not empty or empty fields) takes me back to the login > page with 'Did not login'. My debugging print statement isn't showing