【发布时间】:2013-12-25 11:36:43
【问题描述】:
我在我的项目中使用新的会员系统 asp.net 身份。我想使用电子邮件地址作为用户名,是的,我已经看过这些问题了:
Configure Microsoft.AspNet.Identity to allow email address as username
ASP.NET identity use email instead of user name
我知道如何使用电子邮件作为用户名。但我还有另一个问题,验证错误消息:
Name xxxxxxxxx@xxxx.com is already taken.
当用户尝试使用现有电子邮件地址注册时,会出现此消息。因此,我想提供类似以下的错误消息,而不是此错误消息:
User with the given email address already exist.
那么我怎样才能在 Asp.Net 身份中做到这一点??
【问题讨论】:
标签: c# asp.net-mvc asp.net-membership asp.net-identity