comparison roundup/cgi/client.py @ 4669:d7ac6c7bc371

Fix basic authentication. Instatiating the login action would fail if the user is not set. We now first set the user to anonymous and then try basic authentication if enabled.
author Ralf Schlatterbeck <rsc@runtux.com>
date Tue, 16 Oct 2012 18:27:33 +0200
parents fc513bd18167
children 23de24f57566
comparison
equal deleted inserted replaced
4668:43a614a6ed19 4669:d7ac6c7bc371
704 except TypeError: 704 except TypeError:
705 # invalid challenge 705 # invalid challenge
706 pass 706 pass
707 username, password = decoded.split(':', 1) 707 username, password = decoded.split(':', 1)
708 try: 708 try:
709 # Current user may not be None, otherwise
710 # instatiation of the login action will fail.
711 # So we set the user to anonymous first.
712 self.make_user_anonymous()
709 login = self.get_action_class('login')(self) 713 login = self.get_action_class('login')(self)
710 login.verifyLogin(username, password) 714 login.verifyLogin(username, password)
711 except LoginError, err: 715 except LoginError, err:
712 self.make_user_anonymous() 716 self.make_user_anonymous()
713 raise 717 raise

Roundup Issue Tracker: http://roundup-tracker.org/