Skip to content

Commit

Permalink
fix: removed possible bypass to allow weak passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Mar 10, 2023
1 parent 7f0f921 commit f612a72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions phpmyfaq/admin/ajax.user.php
Expand Up @@ -143,6 +143,8 @@
if (strlen($userPassword) <= 7 || strlen($userPasswordConfirm) <= 7) {
$errorMessage[] = $PMF_LANG['ad_passwd_fail'];
}
} else {
$userPassword = ''; // set password to empty, so a new one is created
}

if (count($errorMessage) === 0) {
Expand Down

0 comments on commit f612a72

Please sign in to comment.