#1316 createTemporaryPassword()에서 특수문자를 포함하지 못하는 문제 수정

This commit is contained in:
bnu 2015-03-23 17:16:02 +09:00
parent 681beaf911
commit a901f052fe

View file

@ -319,7 +319,7 @@ class Password
{ {
$candidate = substr($source, $i, $length); $candidate = substr($source, $i, $length);
if(preg_match('/[a-z]/', $candidate) && preg_match('/[A-Z]/', $candidate) && if(preg_match('/[a-z]/', $candidate) && preg_match('/[A-Z]/', $candidate) &&
preg_match('/[0-9]/', $candidate) && preg_match('/[!a-zA-Z0-9]/', $candidate)) preg_match('/[0-9]/', $candidate) && preg_match('/[^a-zA-Z0-9]/', $candidate))
{ {
return $candidate; return $candidate;
} }