0
我可以在aws cognito验证电子邮件中使用电子邮件作为参数吗?使用参数的aws cognito验证电子邮件
尝试这样做:
You can verify your account here: <a href="http://localhost:8080/{####}/{email}">verification Link</a>
{} ####工作正常弼{EMAIL}不是
感谢
我可以在aws cognito验证电子邮件中使用电子邮件作为参数吗?使用参数的aws cognito验证电子邮件
尝试这样做:
You can verify your account here: <a href="http://localhost:8080/{####}/{email}">verification Link</a>
{} ####工作正常弼{EMAIL}不是
感谢
我知道你指的是 “{EMAIL}” 为Cognito将识别并替换该用户的电子邮件的值的占位符。所以如果你的意思是不支持。
然而,Cognito提供了一种通过lambda定制验证消息的方法。下面是details
更容易在lambda触发创建一个动态的FQDN - 因此开发人员可以将电子邮件在适当的位置信息(或URI)
这里有一个自定义消息拉姆达的例子功能
exports.handler = function(event, context) {
//
if(event.userPoolId === "theSpecialUserPool") {
// Identify why was this function invoked
if(event.triggerSource === "CustomMessage_SignUp") {
// Ensure that your message contains event.request.codeParameter. This is the placeholder for code that will be sent
event.response.smsMessage = "Welcome to the service. Your confirmation code is " + event.request.codeParameter;
event.response.emailSubject = "Welcome to the service";
event.response.emailMessage = "Thank you for signing up. " + event.request.codeParameter + " is your verification code";
}
// Create custom message for other events
}
// Customize messages for other user pools
//
// Return result to Cognito
context.done(null, event);
};
谢谢你会检查出 – Felix
你知道一个很好的例子,用lamda调用cognito服务吗? – Felix
您的意思是向Cognito提供一个内部调用的lambda表达式?或者如何从lambda函数 –