1
0
Fork 0

Merge pull request #284 from Algebro7/log_successful_logins

Close #264. Username and IP address is logged on successful authentication
Dieser Commit ist enthalten in:
Daniel García 2018-12-11 22:24:04 +01:00 committet von GitHub
Commit f713e2e092
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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))
} }