CustomMessage_AdminCreateUser message templates has unfortunate dot at end of password. custom message requirements undocumented #14047
Labels
Auth
Related to Auth components/category
Cognito
Related to cognito issues
documentation
Related to documentation feature requests
feature-request
Request a new feature
Before opening, please confirm:
JavaScript Framework
Not applicable
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
Amplify Gen 2
Environment information
Describe the bug
The template for temporary password contains a dot at the end of the password, which can be confused as part of the password.
When writing a custom handler to generate the message following the docs (https://docs.amplify.aws/react/build-a-backend/functions/examples/custom-message/) you will notice that the emailMessage will get ignored without warning or error. You actually have to follow this third party documentation to udnerstand and make it work:
https://stackoverflow.com/questions/78602722/why-wont-cognito-send-custom-email-message-templates-in-the-admincreateuser-cas
Expected behavior
the user should be able to just select and copy the password without guessing about the dot.
The custom-message documentation should mention the requirements for the emailMessage, explain about the nature of the placeholder strings and show a fully working example.
Reproduction steps
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: