From: Hypolite Petovan Date: Thu, 19 Jan 2023 01:27:29 +0000 (-0500) Subject: Fix wrong logic in password allowed regular expression X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=81cd33466457a31e7694e503e32ff2cc90dce047;p=friendica.git Fix wrong logic in password allowed regular expression --- diff --git a/src/Model/User.php b/src/Model/User.php index bd7351f072..35ea835b30 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -776,7 +776,7 @@ class User $allowed_characters = preg_quote($allowed_characters, $delimiter); } - return '^[a-zA-Z0-9' . $allowed_characters . ']' . (PASSWORD_DEFAULT !== PASSWORD_BCRYPT ? '{1,72}' : '+') . '$'; + return '^[a-zA-Z0-9' . $allowed_characters . ']' . (PASSWORD_DEFAULT === PASSWORD_BCRYPT ? '{1,72}' : '+') . '$'; } /**