Compare commits

..
Author SHA1 Message Date
Daniel García b2dd9cf1d0 Merge branch 'main' into v2-registration 2026-08-06 20:22:29 +02:00
Daniel García d518f6f01e Implement V2 registration support 2026-08-01 04:06:39 +02:00
+2 -2
View File
@@ -318,7 +318,7 @@ async fn sso_login(
Some((user, _)) if !user.enabled => {
err!(
"This user has been disabled",
format!("IP: {}. Username: {}.", ip.ip, user.email),
format!("IP: {}. Username: {}.", ip.ip, user.display_name()),
ErrorEvent {
event: EventType::UserFailedLogIn
}
@@ -566,7 +566,7 @@ async fn authenticated_response(
result["TwoFactorToken"] = Value::String(token);
}
info!("User {} logged in successfully. IP: {}", user.email, ip.ip);
info!("User {} logged in successfully. IP: {}", user.display_name(), ip.ip);
Ok(Json(result))
}