fix auth4
This commit is contained in:
parent
12c43c6fed
commit
bf986b4d71
2 changed files with 4 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ APP_ALLOWED_ORIGINS=http://localhost:8080,https://playground.poweron-center.net,
|
|||
|
||||
# Logging configuration
|
||||
APP_LOGGING_LOG_LEVEL = INFO
|
||||
APP_LOGGING_LOG_FILE = /home/poweron.log
|
||||
APP_LOGGING_LOG_FILE = /home/site/wwwroot/poweron.log
|
||||
APP_LOGGING_FORMAT = %(asctime)s - %(levelname)s - %(name)s - %(message)s
|
||||
APP_LOGGING_DATE_FORMAT = %Y-%m-%d %H:%M:%S
|
||||
APP_LOGGING_CONSOLE_ENABLED = True
|
||||
|
|
|
|||
|
|
@ -279,7 +279,9 @@ class GatewayInterface:
|
|||
users = self.db.getRecordset("users")
|
||||
for user in users:
|
||||
if user.get("username") == username:
|
||||
return user
|
||||
# Return a copy of the user with all fields, including hashedPassword
|
||||
return user.copy()
|
||||
logger.debug(f"No user found with username {username}")
|
||||
return None
|
||||
|
||||
def getUser(self, userId: int) -> Optional[Dict[str, Any]]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue