Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Installation process - password fields (#284)

Adriano Cavalari500fa184b23b
diff --git a/src/Web/Grand.Web/Validators/Install/InstallValidator.cs b/src/Web/Grand.Web/Validators/Install/InstallValidator.cs
index 13be81abd..863c0f557 100644
--- a/src/Web/Grand.Web/Validators/Install/InstallValidator.cs
+++ b/src/Web/Grand.Web/Validators/Install/InstallValidator.cs
@@ -14,7 +14,8 @@ namespace Grand.Web.Validators.Install
RuleFor(x => x.AdminEmail).EmailAddress();
RuleFor(x => x.AdminPassword).NotEmpty();
RuleFor(x => x.ConfirmPassword).NotEmpty();
- RuleFor(x => x.AdminPassword).Equal(x => x.ConfirmPassword);
+ RuleFor(x => x.AdminPassword).Equal(x => x.ConfirmPassword)
+ .WithMessage("Passwords must be equals");
}
}
}
\ No newline at end of file