1
0
mirror of https://github.com/bitwarden/server synced 2026-01-02 08:33:48 +00:00

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

View File

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