我对密码恢复控件有一个奇怪的问题。单击提交按钮时,没有任何反应,它不会进入下一阶段,这应该是安全问题。它就像它没有连接或什么的。
这是我在 web.config 中使用的代码:
<membership defaultProvider="SAMWEBSqlMembershipProvider">
<providers>
<!-- Add a customized SqlMembershipProvider -->
<add name="SAMWEBSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SAMWEBConnectionString" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="AMC" requiresUniqueEmail="true" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression="" />
</providers>
</membership>
网页:
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="password-recovery2.aspx.vb" Inherits="Default2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:PasswordRecovery ID="PasswordRecovery1" runat="server">
</asp:PasswordRecovery>
</asp:Content>