Skip to content

Commit

Permalink
fix: updated password policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Amit committed Jan 14, 2024
1 parent 9aeb5b7 commit 42ff064
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AwsCognitoUserPool.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ public function getPasswordPolicy(bool $regex = false)

case 'RequireSymbols':
if ($value) {
$regexString .= '(?=.*[!@#$%^&*])'; //(?=.*[\^$*.\[\]{}\(\)?\-\"!@#%&\/,><\':;|_~`])
//Generate the regex for special characters
$regexString .= '(?=.*[\^$*.\[\]{}\(\)?\-\"!@#%&\/,><\':;_~`])'; //Missing pipe character
$messageText .= 'one special character, ';
} //If ends
break;
Expand Down

0 comments on commit 42ff064

Please sign in to comment.