Skip to content

Commit

Permalink
Fix reset password page to use the password pattern only when enabled…
Browse files Browse the repository at this point in the history
… the related setting
  • Loading branch information
josegar74 committed Nov 28, 2024
1 parent 7604378 commit 9fe9091
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions web-ui/src/main/resources/catalog/js/LoginController.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2001-2016 Food and Agriculture Organization of the
* Copyright (C) 2001-2024 Food and Agriculture Organization of the
* United Nations (FAO-UN), United Nations World Food Programme (WFP)
* and United Nations Environment Programme (UNEP)
*
Expand Down Expand Up @@ -89,7 +89,13 @@
gnConfig["system.security.passwordEnforcement.maxLength"],
6
);
$scope.passwordPattern = gnConfig["system.security.passwordEnforcement.pattern"];

$scope.usePattern = gnConfig["system.security.passwordEnforcement.usePattern"];

if ($scope.usePattern) {
$scope.passwordPattern =
gnConfig["system.security.passwordEnforcement.pattern"];
}
});

$scope.resolveRecaptcha = false;
Expand Down

0 comments on commit 9fe9091

Please sign in to comment.