fix(auth-validator): [PM-22975] Client Version Validator - Minor function name change.

This commit is contained in:
Patrick Pimentel 2025-12-08 13:39:40 -05:00
parent fb83df353c
commit 10cbfd836c
No known key found for this signature in database
GPG Key ID: 4B27FC74C6422186

View File

@ -35,7 +35,7 @@ public class ClientVersionValidator(
// the user not nullish checked. If they are null then the validator should fail. // the user not nullish checked. If they are null then the validator should fail.
if (user == null) if (user == null)
{ {
FillContextWithErrorData(requestContext, "no_user", _noUserMessage); FillRequestContextWithErrorData(requestContext, "no_user", _noUserMessage);
return false; return false;
} }
@ -51,7 +51,7 @@ public class ClientVersionValidator(
// with stale encryption architecture. // with stale encryption architecture.
if (clientVersion == null) if (clientVersion == null)
{ {
FillContextWithErrorData(requestContext, "version_header_missing", _versionHeaderMissing); FillRequestContextWithErrorData(requestContext, "version_header_missing", _versionHeaderMissing);
return false; return false;
} }
@ -64,14 +64,14 @@ public class ClientVersionValidator(
if (clientVersion < minVersion) if (clientVersion < minVersion)
{ {
FillContextWithErrorData(requestContext, "invalid_client_version", _upgradeMessage); FillRequestContextWithErrorData(requestContext, "invalid_client_version", _upgradeMessage);
return false; return false;
} }
return true; return true;
} }
private void FillContextWithErrorData( private void FillRequestContextWithErrorData(
CustomValidatorRequestContext requestContext, CustomValidatorRequestContext requestContext,
string errorId, string errorId,
string errorMessage) string errorMessage)