Skip to content

Commit

Permalink
Removes all but length restrictions from password policy
Browse files Browse the repository at this point in the history
  • Loading branch information
neomorphic committed May 10, 2022
1 parent 435c7aa commit dc8add8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion admin_api_stack/lib/cognitopool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ export class CognitoPool extends Construct {
Please login at ${adminBucketUrl} to change your password and access the service.`
},
autoVerify: { email: true },
accountRecovery: cognito.AccountRecovery.EMAIL_ONLY
accountRecovery: cognito.AccountRecovery.EMAIL_ONLY,
passwordPolicy: {
minLength: 14,
requireLowercase: false,
requireUppercase: false,
requireDigits: false,
requireSymbols: false,
tempPasswordValidity: cdk.Duration.days(7),
},
});

// this generates the clientId that will be used by the admin site
Expand Down

0 comments on commit dc8add8

Please sign in to comment.