Mercurial > kallithea
comparison rhodecode/lib/auth_modules/auth_rhodecode.py @ 4186:7e5f8c12a3fc kallithea-2.2.5-rebrand
First step in two-part process to rename directories to kallithea.
This first step is to change all references in the files where they refer
to the old directory name.
author | Bradley M. Kuhn <bkuhn@sfconservancy.org> |
---|---|
date | Wed, 02 Jul 2014 19:04:28 -0400 |
parents | ffd45b185016 |
children |
comparison
equal
deleted
inserted
replaced
4185:aaa7c3331186 | 4186:7e5f8c12a3fc |
---|---|
10 # GNU General Public License for more details. | 10 # GNU General Public License for more details. |
11 # | 11 # |
12 # You should have received a copy of the GNU General Public License | 12 # You should have received a copy of the GNU General Public License |
13 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 13 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
14 """ | 14 """ |
15 rhodecode.lib.auth_modules.auth_rhodecode | 15 kallithea.lib.auth_modules.auth_rhodecode |
16 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 16 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
17 | 17 |
18 RhodeCode authentication plugin for built in internal auth | 18 RhodeCode authentication plugin for built in internal auth |
19 | 19 |
20 :created_on: Created on Nov 17, 2012 | 20 :created_on: Created on Nov 17, 2012 |
23 :license: GPLv3, see LICENSE for more details. | 23 :license: GPLv3, see LICENSE for more details. |
24 """ | 24 """ |
25 | 25 |
26 | 26 |
27 import logging | 27 import logging |
28 from rhodecode.lib import auth_modules | 28 from kallithea.lib import auth_modules |
29 from rhodecode.lib.compat import formatted_json, hybrid_property | 29 from kallithea.lib.compat import formatted_json, hybrid_property |
30 from rhodecode.model.db import User | 30 from kallithea.model.db import User |
31 | 31 |
32 | 32 |
33 log = logging.getLogger(__name__) | 33 log = logging.getLogger(__name__) |
34 | 34 |
35 | 35 |
78 'extern_type': userobj.extern_type, | 78 'extern_type': userobj.extern_type, |
79 } | 79 } |
80 | 80 |
81 log.debug(formatted_json(user_attrs)) | 81 log.debug(formatted_json(user_attrs)) |
82 if userobj.active: | 82 if userobj.active: |
83 from rhodecode.lib import auth | 83 from kallithea.lib import auth |
84 password_match = auth.RhodeCodeCrypto.hash_check(password, userobj.password) | 84 password_match = auth.RhodeCodeCrypto.hash_check(password, userobj.password) |
85 if userobj.username == User.DEFAULT_USER and userobj.active: | 85 if userobj.username == User.DEFAULT_USER and userobj.active: |
86 log.info('user %s authenticated correctly as anonymous user' % | 86 log.info('user %s authenticated correctly as anonymous user' % |
87 username) | 87 username) |
88 return user_attrs | 88 return user_attrs |