Я настроил cognito, но страница подтверждения электронной почты не получает мое имя пользователя должным образом (печать заполнителей).
Мои настройки Cognito следующие: ![enter image description here](https://i.stack.imgur.com/vtu2d.png)
, а полученное письмо с подтверждением: ![enter image description here](https://i.stack.imgur.com/UtceC.png)
Нужно ли использовать для этого специальные лямбда-триггеры?(Как мне этого добиться)
Обновление: Используйте "event.userName" , чтобы получить имя пользователя в лямбда-триггере
if(event.triggerSource === "CustomMessage_ForgotPassword") {
// Ensure that your message contains event.request.codeParameter. This is the placeholder for code that will be sent
event.response.smsMessage = "You requested to reset your password " + event.request.codeParameter;
event.response.emailSubject = "You requested to reset your password: " + event.userName;
event.response.emailMessage = 'Hi, Username:' + event.userName+' , '+ event.request.codeParameter + ' is your verification code ' ;
}