Merge pull request #499 from in0th3p/passwordRemoval

Removed API-Key and PlanePassword logging
This commit is contained in:
Khanh Ngo 2019-05-01 09:17:07 +07:00 committed by GitHub
commit 4d1953bf07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2331,8 +2331,6 @@ class ApiKey(db.Model):
Validate user credential
"""
if method == 'LOCAL':
logging.debug(self.plain_text_password)
logging.debug(self.get_hashed_password(self.plain_text_password))
passw_hash = self.get_hashed_password(self.plain_text_password)
apikey = ApiKey.query \
.filter(ApiKey.key == passw_hash.decode('utf-8')) \