Cognito: Add missing double quota to special characters. (#6173)

This commit is contained in:
Bartosz Janda 2023-04-04 20:59:15 +02:00 committed by GitHub
parent 6c32c089a1
commit 9f91ac0eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1999,7 +1999,7 @@ class CognitoIdpBackend(BaseBackend):
# If we require symbols, we assume False - and check a symbol is present
# If we don't require symbols, we assume True - and we could technically skip the for-loop
flag_sc = not require_symbols
sc = "^ $ * . [ ] { } ( ) ? ! @ # % & / \\ , > < ' : ; | _ ~ ` = + -"
sc = "^ $ * . [ ] { } ( ) ? \" ! @ # % & / \\ , > < ' : ; | _ ~ ` = + -"
for i in password:
if i in sc:
flag_sc = True