Merge pull request #284 from Algebro7/log_successful_logins

Close #264. Username and IP address is logged on successful authentication
pull/289/head
Daniel García 6 years ago committed by GitHub
commit f713e2e092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -129,6 +129,7 @@ fn _password_login(data: ConnectData, conn: DbConn, ip: ClientIp) -> JsonResult
result["TwoFactorToken"] = Value::String(token); result["TwoFactorToken"] = Value::String(token);
} }
info!("User {} logged in successfully. IP: {}", username, ip.ip);
Ok(Json(result)) Ok(Json(result))
} }

Loading…
Cancel
Save