diff --git a/src/api/identity.rs b/src/api/identity.rs index bb1b97c4..66e847f8 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -533,7 +533,8 @@ fn check_client_version(user: &User, client_header: &ClientHeaders) -> EmptyResu return Ok(()); }; Err(crate::error::Error::from(( - format!("IP: {}. Username: {}. {error}", client_header.ip.ip, user.email), + // Escaped: on a first SSO login the email comes from the provider and isn't validated yet + format!("IP: {}. Username: {}. {error}", client_header.ip.ip, user.email.escape_debug()), json!({ "error": error, "error_description": description,