From 9f91ac0eb96b1868905e1555cb819757c055b652 Mon Sep 17 00:00:00 2001 From: Bartosz Janda Date: Tue, 4 Apr 2023 20:59:15 +0200 Subject: [PATCH] Cognito: Add missing double quota to special characters. (#6173) --- moto/cognitoidp/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/cognitoidp/models.py b/moto/cognitoidp/models.py index 20b49a8c0..fed3ae33e 100644 --- a/moto/cognitoidp/models.py +++ b/moto/cognitoidp/models.py @@ -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