用户名不能为电子邮件格式,因为已为电子邮件配置了用户池 [英] Username cannot be of email format, since user pool is configured for email

查看:83
本文介绍了用户名不能为电子邮件格式,因为已为电子邮件配置了用户池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在AWS Cognito中注册用户时,此错误将作为响应返回.:

When I try sign up an user in AWS Cognito this error is returned in response.:

但是,在我的配置中,电子邮件字段是一个别名.

But, in my config the email field is an alias.:

我该如何解决?

推荐答案

通过该错误消息,似乎失败了,因为您将电子邮件作为别名,但也已将其设置为您的用户名.我想解决这个问题,您可以先使用一些临时的,丢弃的用户名,或者取消选中它作为别名,然后将其同时用作用户名和属性.前者为您提供了更大的更新灵活性,但这最终满足了您应用程序的需求.

By that error message, it looks like it's failing because you have email as an alias but have also set given it as your username. I think to get around this, you could either use some temporary, throw away username at first or un-check it as an alias and just use it as both username and an attribute. The former gives you more flexibility to updating it, but that's ultimately up to your application's needs.

这篇关于用户名不能为电子邮件格式,因为已为电子邮件配置了用户池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆