mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-18 06:30:53 +00:00
Sentry: don't report id=authkey unless it's likely to be valid
This commit is contained in:
@@ -37,7 +37,11 @@ void TSentry::SetupUser() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sentry_value_t user = sentry_value_new_object();
|
sentry_value_t user = sentry_value_new_object();
|
||||||
|
if (Application::Settings.Key.size() == 36) {
|
||||||
sentry_value_set_by_key(user, "id", sentry_value_new_string(Application::Settings.Key.c_str()));
|
sentry_value_set_by_key(user, "id", sentry_value_new_string(Application::Settings.Key.c_str()));
|
||||||
|
} else {
|
||||||
|
sentry_value_set_by_key(user, "id", sentry_value_new_string("unauthenticated"));
|
||||||
|
}
|
||||||
sentry_set_user(user);
|
sentry_set_user(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user