diff --git a/src/middlewared/middlewared/plugins/auth.py b/src/middlewared/middlewared/plugins/auth.py index 8874baf00403..6ada6c2da4b3 100644 --- a/src/middlewared/middlewared/plugins/auth.py +++ b/src/middlewared/middlewared/plugins/auth.py @@ -118,6 +118,10 @@ async def login(self, app, credentials): if app.authenticated: self.sessions[app.session_id].credentials = credentials app.authenticated_credentials = credentials + await self.middleware.log_audit_message(app, "AUTHENTICATION", { + "credentials": dump_credentials(credentials), + "error": None, + }, True) return session = Session(self, credentials, app)