1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 2 ans
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)