From 1bcd0e2f46defd86ab1b53eb45d92fdd78f7bbf8 Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Tue, 17 Sep 2019 13:39:33 -0500 Subject: [PATCH] issue: PHP 7.3 New Agent Set Password This addresses an issue reported on the Forum where creating a new Agent and setting a password hangs when using PHP 7.3. This is due to too few arguments passed to `PasswordPolicy::checkPassword()`. This updates the call to include a second argument of `null` so the method is satisfied and we can continue with checking the password. --- include/ajax.staff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ajax.staff.php b/include/ajax.staff.php index 143fbced3..703373691 100644 --- a/include/ajax.staff.php +++ b/include/ajax.staff.php @@ -37,7 +37,7 @@ class StaffAjaxAPI extends AjaxController { $clean = $form->getClean(); try { // Validate password - PasswordPolicy::checkPassword($clean['passwd1']); + PasswordPolicy::checkPassword($clean['passwd1'], null); if ($id == 0) { // Stash in the session later when creating the user $_SESSION['new-agent-passwd'] = $clean; -- GitLab