From e26e2319da6a6197348ac077a9a337cf976d2c85 Mon Sep 17 00:00:00 2001 From: algebro Date: Tue, 11 Dec 2018 15:20:06 -0500 Subject: [PATCH] Close #264. Usernames and IP addresses are logged on successful authentication --- src/api/identity.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/identity.rs b/src/api/identity.rs index 01e3706..ecdf37c 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -129,6 +129,7 @@ fn _password_login(data: ConnectData, conn: DbConn, ip: ClientIp) -> JsonResult result["TwoFactorToken"] = Value::String(token); } + info!("User {} logged in successfully. IP: {}", username, ip.ip); Ok(Json(result)) }