update the error message.

This commit is contained in:
Ben
2024-10-24 20:13:43 +08:00
parent ce51262197
commit 3565185808
2 changed files with 1 additions and 8 deletions

View File

@ -559,13 +559,6 @@ namespace Oqtane.Managers
{
validateResult.Succeeded = false;
validateResult.Errors.Add("Message.Password.Invalid", string.Empty);
if (passwordResult.Errors != null)
{
foreach (var error in passwordResult.Errors)
{
validateResult.Errors.Add(error.Code, error.Description);
}
}
}
return validateResult;