Show More
@@ -853,17 +853,17 b' class AuthUser(object):' | |||||
853 |
|
853 | |||
854 | # lookup by userid |
|
854 | # lookup by userid | |
855 | if self.user_id is not None and self.user_id != anon_user.user_id: |
|
855 | if self.user_id is not None and self.user_id != anon_user.user_id: | |
856 | log.debug('Trying Auth User lookup by USER ID %s' % self.user_id) |
|
856 | log.debug('Trying Auth User lookup by USER ID: `%s`' % self.user_id) | |
857 | is_user_loaded = user_model.fill_data(self, user_id=self.user_id) |
|
857 | is_user_loaded = user_model.fill_data(self, user_id=self.user_id) | |
858 |
|
858 | |||
859 | # try go get user by api key |
|
859 | # try go get user by api key | |
860 | elif self._api_key and self._api_key != anon_user.api_key: |
|
860 | elif self._api_key and self._api_key != anon_user.api_key: | |
861 | log.debug('Trying Auth User lookup by API KEY %s' % self._api_key) |
|
861 | log.debug('Trying Auth User lookup by API KEY: `%s`' % self._api_key) | |
862 | is_user_loaded = user_model.fill_data(self, api_key=self._api_key) |
|
862 | is_user_loaded = user_model.fill_data(self, api_key=self._api_key) | |
863 |
|
863 | |||
864 | # lookup by username |
|
864 | # lookup by username | |
865 | elif self.username: |
|
865 | elif self.username: | |
866 | log.debug('Trying Auth User lookup by USER NAME %s' % self.username) |
|
866 | log.debug('Trying Auth User lookup by USER NAME: `%s`' % self.username) | |
867 | is_user_loaded = user_model.fill_data(self, username=self.username) |
|
867 | is_user_loaded = user_model.fill_data(self, username=self.username) | |
868 | else: |
|
868 | else: | |
869 | log.debug('No data in %s that could been used to log in' % self) |
|
869 | log.debug('No data in %s that could been used to log in' % self) |
General Comments 0
You need to be logged in to leave comments.
Login now