Changeset 1382

Show
Ignore:
Timestamp:
05/05/06 16:05:45 (3 years ago)
Author:
kevin
Message:

fix for identity failure when user logs in and is not in group (#834)
Thanks to Rune Hansen.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/CHANGELOG.txt

    r1381 r1382  
    1717*Fixes* 
    1818 
     19* QUICKSTART: an exception comes up if a user logs in but is not in 
     20  a group that is required for access. The line with 
     21  `if not identity.current.anonymous and identity.was_login_attempted()` 
     22  in controllers.py or root.py needs an additional 
     23  `and not identity.get_identity_errors()` condition. (#834) 
    1924* Access logging to a file wasn't working correctly (#816) 
    2025 
     26 
    2127*Contributors* 
    2228 
    23 Claudio Martinez, Matt Good, Max Ischenko 
     29Claudio Martinez, Matt Good, Rune Hansen, Max Ischenko 
    2430 
    25310.9a5 (April 26, 2006) 
  • branches/1.0/turbogears/qstemplates/quickstartbig/+package+/controllers/root.py_tmpl

    r1261 r1382  
    2424    def login(self, forward_url=None, previous_url=None, *args, **kw): 
    2525 
    26         if not identity.current.anonymous and identity.was_login_attempted(): 
     26        if not identity.current.anonymous \ 
     27            and identity.was_login_attempted() \ 
     28            and not identity.get_identity_errors(): 
    2729            raise redirect(forward_url) 
    2830 
  • branches/1.0/turbogears/qstemplates/quickstart/+package+/controllers.py_tmpl

    r1261 r1382  
    2424    def login(self, forward_url=None, previous_url=None, *args, **kw): 
    2525 
    26         if not identity.current.anonymous and identity.was_login_attempted(): 
     26        if not identity.current.anonymous \ 
     27            and identity.was_login_attempted() \ 
     28            and not identity.get_identity_errors(): 
    2729            raise redirect(forward_url) 
    2830