Mercurial > kallithea
diff rhodecode/lib/auth.py @ 674:99875a8f2ad1 beta
#49 Enabled anonymous access push and pull commands
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 11 Nov 2010 01:21:33 +0100 |
parents | dd532af216d9 |
children | ff6a8196ebfe |
line wrap: on
line diff
--- a/rhodecode/lib/auth.py Thu Nov 11 01:05:43 2010 +0100 +++ b/rhodecode/lib/auth.py Thu Nov 11 01:21:33 2010 +0100 @@ -77,7 +77,12 @@ if user: if user.active: - if user.username == username and check_password(password, user.password): + + if user.username == 'default' and user.active: + log.info('user %s authenticated correctly', username) + return True + + elif user.username == username and check_password(password, user.password): log.info('user %s authenticated correctly', username) return True else: