#834: 0.9a5 identity fails when not Anonymous and not in_group
---------------------------------+------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  anonymous
     Type:  defect               |      Status:  new      
 Priority:  normal               |   Milestone:  1.0b1    
Component:  Identity             |     Version:  0.9a5    
 Severity:  normal               |    Keywords:           
---------------------------------+------------------------------------------
 controllers.py / root.py

 I suggest that the line:

 "if not identity.current.anonymous and identity.was_login_attempted():"

 of method "login" is changed to:

 "if not identity.current.anonymous and identity.was_login_attempted() and
 not identity.get_identity_errors():"

 to prevent


 "if not identity.current.anonymous and identity.was_login_attempted():
             raise redirect(forward_url)"

 becoming True and attempting to perform redirect on a None object.

 Reference:
 
http://groups.google.com/group/turbogears/tree/browse_frm/thread/549ba9b58f4ae4d5/3dc411c17f6391de?rnum=1&_done=%2Fgroup%2Fturbogears%2Fbrowse_frm%2Fthread%2F549ba9b58f4ae4d5%2F3dc411c17f6391de%3F#doc_1708802eeedea461

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/834>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to