fix check if password and confirm are identical

This commit is contained in:
JackTerok 2021-02-19 18:32:36 +01:00
parent a572436c8a
commit 91e8fecb28
1 changed files with 3 additions and 3 deletions

View File

@ -20,10 +20,10 @@ namespace Monitor.Pages
{
if (!password.Equals(passwordConfirm))
{
ValidationMessage = "Password does not match the confirmation!";
base.PreInit();
Response.Redirect(PTMagicConfiguration.GeneralSettings.Monitor.RootUrl + "SetupPassword");
}
if (ModelState.IsValid)
else if (ModelState.IsValid)
{
base.PreInit();
PTMagicConfiguration.WriteSecureSettings(password);