Edgewall Software

Ticket #2417: auth.py.diff

File auth.py.diff, 542 bytes (added by lm@…, 4 years ago)

Check the trac.ini for a trac_auth section to get the domain.

  • usr/lib/python2.5/site-packages/trac/web/auth.py

     
    142142 
    143143        req.authname = remote_user 
    144144        req.outcookie['trac_auth'] = cookie 
     145        auth_domain = self.env.config.get('trac_auth', 'domain') 
     146        if len(auth_domain) > 0: 
     147                req.outcookie['trac_auth']['domain'] = auth_domain 
    145148        req.outcookie['trac_auth']['path'] = req.href() 
    146149 
    147150    def _do_logout(self, req):