mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
#1316 createTemporaryPassword()에서 특수문자를 포함하지 못하는 문제 수정
This commit is contained in:
parent
681beaf911
commit
a901f052fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue