我的 ASP .NET 网站管理工具缺少某些东西,我没有看到“安全问题”或“安全答案”。
根据“演练:将身份验证服务与 Silverlight 业务应用程序一起使用”(http://msdn.microsoft.com/en-us/library/ee942449(v=vs.91).aspx),这是我在创建时应该看到的一个新用户:
但这是我看到的:
缺少“安全问题”和“安全答案”。我可能没有安装什么?,我正在使用 Visual Studio 2012。
我的 ASP .NET 网站管理工具缺少某些东西,我没有看到“安全问题”或“安全答案”。
根据“演练:将身份验证服务与 Silverlight 业务应用程序一起使用”(http://msdn.microsoft.com/en-us/library/ee942449(v=vs.91).aspx),这是我在创建时应该看到的一个新用户:
但这是我看到的:
缺少“安全问题”和“安全答案”。我可能没有安装什么?,我正在使用 Visual Studio 2012。
对于那些感兴趣的人,您必须进行自定义会员提供者设置,例如:
<membership
defaultProvider="SqlProvider"
userIsOnlineTimeWindow="20">
<providers>
<clear/>
<add name="SqlProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="LocalSqlServer"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="false"
maxInvalidPasswordAttempts="5"
passwordAttemptWindow="10"
passwordFormat="Hashed"
minRequiredPasswordLength="7"
enablePasswordRetrieval="false"
applicationName="/" />
</providers>
</membership>
在 web.config 文件中。注意 requiresQuestionAndAnswer="true" 设置。