mirror of
https://github.com/vladmandic/automatic
synced 2026-08-26 15:16:01 +02:00
remove invalid password from log
Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
+1
-1
@@ -137,7 +137,7 @@ class Api:
|
||||
if hasattr(self.app, 'tokens') and (self.app.tokens is not None):
|
||||
if credentials.password in self.app.tokens.keys():
|
||||
return True
|
||||
shared.log.error(f'API authentication: user="{credentials.username}" password="{credentials.password}"')
|
||||
shared.log.error(f'API authentication: user="{credentials.username}"')
|
||||
raise HTTPException(status_code=401, detail="Unauthorized", headers={"WWW-Authenticate": "Basic"})
|
||||
|
||||
def get_session_start(self, req: Request, agent: Optional[str] = None):
|
||||
|
||||
Reference in New Issue
Block a user