(passwordPolicy)
| 488 | |
| 489 | // if the passwordPolicy.validatorPattern is configured then setup a callback to process the pattern |
| 490 | static setupPasswordValidator(passwordPolicy) { |
| 491 | if (passwordPolicy && passwordPolicy.validatorPattern) { |
| 492 | passwordPolicy.patternValidator = value => { |
| 493 | return passwordPolicy.validatorPattern.test(value); |
| 494 | }; |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | static validatePublicServerURL({ publicServerURL, required = false }) { |
| 499 | if (!publicServerURL) { |