1 Answer
- Newest
- Most votes
- Most comments
0
Can you use the Custom Message Lambda for CustomMessage_ForgotPassword
case and do a look up in the event.request.userAttributes
for the appropriate value you need to craft your own message.
reference: https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-custom-message.html
answered a year ago
Relevant content
- asked 5 years ago
- asked 5 months ago
- asked 8 months ago
- asked a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
Thanks Jeff. One problem I got was that if I don't have usernameParameter in my template then the CustomMessage_ForgotPassword trigger is ignored. I suppose I could hide that variable in the html but that doesn't work for anything other than HTML.
I just confirmed that if I hide the usernameParameter in a hidden span tag in the custom message then the custom message is sent successfully (vs the default userpool message)