From 1fe67b21fd3e0fe9e7063cd03e43e1583fce3ce1 Mon Sep 17 00:00:00 2001 From: vnugent Date: Mon, 28 Aug 2023 22:00:06 -0400 Subject: Patches & data-store updates --- .../src/Validators/LoginMessageValidation.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/VNLib.Plugins.Essentials.Accounts/src/Validators') diff --git a/plugins/VNLib.Plugins.Essentials.Accounts/src/Validators/LoginMessageValidation.cs b/plugins/VNLib.Plugins.Essentials.Accounts/src/Validators/LoginMessageValidation.cs index 4cdf51b..4804480 100644 --- a/plugins/VNLib.Plugins.Essentials.Accounts/src/Validators/LoginMessageValidation.cs +++ b/plugins/VNLib.Plugins.Essentials.Accounts/src/Validators/LoginMessageValidation.cs @@ -65,11 +65,14 @@ namespace VNLib.Plugins.Essentials.Accounts.Validators public ClientSecurityMessageValidator() { RuleFor(static t => t.ClientId) - .Length(min: 10, max: 100) - .WithMessage(errorMessage: "Your browser is not sending required security information"); + .NotEmpty() + .WithMessage(errorMessage: "Your browser is not sending required security information") + .Length(min: 10, max: 100) + .WithMessage(errorMessage: "Your browser is not sending required security information"); RuleFor(static t => t.PublicKey) .NotEmpty() + .WithMessage(errorMessage: "Your browser is not sending required security information") .Length(min: 50, max: 1000) .WithMessage(errorMessage: "Your browser is not sending required security information"); } -- cgit