'NoneType' object has no attribute 'is_authenticated' when Email field empty on registration

83 views
Skip to first unread message

peterf81

unread,
Sep 21, 2009, 10:10:30 AM9/21/09
to CNProg open discussion
Hello,
when I log in as new user thru Google OpenID,
and then I'am asked about Username and Email,
I receive this error when i do not enter an email address or it is in
incorrect format

AttributeError at /account/register/
'NoneType' object has no attribute 'is_authenticated'
Request Method: POST
Request URL: http://www.xxx.com/account/register/
Exception Type: AttributeError
Exception Value:
'NoneType' object has no attribute 'is_authenticated'
Exception Location: /usr/local/alwaysdata/python/django/1.1/django/
core/handlers/base.py in get_response, line 92


because the new user cannot be created when he does not enter an email
address. What can I do to avoid this error? On cnprog.com when i do
not enter an email address i receive an warning that it is mandatory,
but on my site i receive the AttributeError.

Thanx

Peter
Reply all
Reply to author
Forward
0 new messages