aws-lambda - 自定义 AWS Cognito 托管的 UI confirmForgotPassword 页面
问题描述
目前通过提供的流程,模板以下列方式响应文本:
我们已通过电子邮件将密码重置代码发送至 j***@t***.com。在下方输入以重置您的密码。
有没有办法更新或添加到这个副本?我什至在哪里可以找到这个模板?
语境:
Vue Nuxt 应用程序与 nuxt 身份验证方案 oath2,通过 AWS Cognito 授权_endpoint
.../confirmForgotPassword?response_type=token&client_id=XXXXXX&redirect_uri=XXX等...
一如既往地感谢任何帮助和指导,因此在此先感谢!
解决方案
好的,所以我找到了一种方法。这有点hacky,但它完成了工作。
在托管的 css 中,将 ::after 添加到文本跨度并将新副本放在该规则中。警告,这只是添加文本而不是更改现有提供的副本。
此处概述了更新流程: https ://docs.aws.amazon.com/cli/latest/reference/cognito-idp/set-ui-customization.html
#div-forgot-password-msg span::after {
content: " additional text that will be displayed at the end of the existing copy."
}
推荐阅读
- android - How to send image in android
- azure - Implement row level security (RLS) in Azure Data Explorer
- android - how can i count the character limit of TextView?
- pandas - 使用 pandas 创建一个新列以获取不同货币的卢比换算值
- javascript - 播放 blob 视频文件
- ocaml - 如何使用一些默认实现在 OCaml 中实现模块签名?
- javascript - 如何从 chome.tabs.captureVisibleTab 获取屏幕截图
- angular - Material datePicker(Angular)中的多个日期选择
- jenkins - Jenkins Pipeline-如何使用发布插件?
- c# - 在 C# 中使用字符串参数调用 Fortran DLL