From 1d07bf477b342c0ed27ef94972e9d63577e50a25 Mon Sep 17 00:00:00 2001 From: Marco Basile Date: Fri, 5 Aug 2022 12:20:42 +0200 Subject: [PATCH] setting email field as mutable to avoid breaking logins attempt after the first login --- infrastructure/pcluster-manager-cognito.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/pcluster-manager-cognito.yaml b/infrastructure/pcluster-manager-cognito.yaml index 9542855a..21ca89c1 100644 --- a/infrastructure/pcluster-manager-cognito.yaml +++ b/infrastructure/pcluster-manager-cognito.yaml @@ -194,8 +194,8 @@ Resources: - !Ref AWS::NoValue Schema: !If - MFA - - [{Name: email, AttributeDataType: String, Mutable: false, Required: true}, {Name: phone_number, AttributeDataType: String, Mutable: false, Required: true}] - - [{Name: email, AttributeDataType: String, Mutable: false, Required: true}] + - [{Name: email, AttributeDataType: String, Mutable: true, Required: true}, {Name: phone_number, AttributeDataType: String, Mutable: false, Required: true}] + - [{Name: email, AttributeDataType: String, Mutable: true, Required: true}] UserPoolName: !Sub ${AWS::StackName}-userpool UsernameConfiguration: CaseSensitive: false