Error handling on signup, login and home view

This commit is contained in:
2026-03-10 20:35:52 +01:00
parent f4b986c79e
commit 6a3fd249a4
6 changed files with 54 additions and 18 deletions

View File

@@ -7,7 +7,7 @@ public class MaxLengthRule : AbstractRule
{
private readonly string _stringValue;
private readonly int _maximumLentgh;
protected override string ErrorCode => "minimum_length";
protected override string ErrorCode => "maximum_length";
protected override string ErrorMessage
=> $"Length of '{ValueObjectName}' must be at most {_maximumLentgh} characters";