diff options
Diffstat (limited to 'Timeline/Models/Validation/UsernameValidator.cs')
-rw-r--r-- | Timeline/Models/Validation/UsernameValidator.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Timeline/Models/Validation/UsernameValidator.cs b/Timeline/Models/Validation/UsernameValidator.cs index e4891400..ecc3b5b3 100644 --- a/Timeline/Models/Validation/UsernameValidator.cs +++ b/Timeline/Models/Validation/UsernameValidator.cs @@ -1,4 +1,5 @@ -using System.Linq;
+using Microsoft.Extensions.Localization;
+using System.Linq;
using System.Text.RegularExpressions;
namespace Timeline.Models.Validation
@@ -10,7 +11,7 @@ namespace Timeline.Models.Validation private readonly Regex _regex = new Regex(RegexPattern);
- protected override bool DoValidate(string value, out string message)
+ protected override bool DoValidate(string value, IStringLocalizerFactory localizerFactory, out string message)
{
if (value.Length == 0)
{
|