aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.8k stars 819 forks source link

add sensible defaults to `Custom Message` Cognito trigger prompts #4574

Open cyrfer opened 4 years ago

cyrfer commented 4 years ago

Is your feature request related to a problem? Please describe. I'm always frustrated when there is no default for common questions like,

Enter the subject for your custom account confirmation email

Describe the solution you'd like I think a default should exist so developers have something they can respond to.

Enter the subject for your custom account confirmation email: confirm your account

Describe alternatives you've considered I entered the phrase: confirm your account

attilah commented 4 years ago

@cyrfer thanks for the feedback, I mark it as an enhancement, we'll have to review the other questions as well for better DX.

josefaidt commented 1 year ago

Confirmed issue is still present, this is for the Custom Message Cognito Trigger typically enabled with the Email Verification Link with Redirect capability

 What do you want to do? Walkthrough all the auth configurations
 Select the authentication/authorization services that you want to use: User Sign-Up, Sign-In, connected with AWS I
AM controls (Enables per-user Storage features for images or other content, Analytics, and more)
 Allow unauthenticated logins? (Provides scoped down permissions that you can control via AWS IAM) No
 Do you want to enable 3rd party authentication providers in your identity pool? No
 Do you want to add User Pool Groups? No
 Do you want to add an admin queries API? No
 Multifactor authentication (MFA) user login options: OFF
 Email based user registration/forgot password: Enabled (Requires per-user email entry at registration)
 Specify an email verification subject: email
 Specify an email verification message: Your verification code is {####}
 Do you want to override the default password policy for this User Pool? No
 Specify the app's refresh token expiration period (in days): 30
 Do you want to specify the user attributes this app can read and write? No
 Do you want to enable any of the following capabilities? Email Verification Link with Redirect
 Do you want to use an OAuth flow? No
? Do you want to configure Lambda Triggers for Cognito? Yes
? Which triggers do you want to enable for Cognito Custom Message
? What functionality do you want to use for Custom Message Send Account Confirmation Link w/ Redirect
✔ Enter the URL that your users will be redirected to upon account confirmation: · https://docs.amplify.aws
? Enter the subject for your custom account confirmation email: ›