ログインページを作成し、ASP.NET構成ツールを使用してパスワードを使用して2人のユーザーを作成しました。
作成したユーザーでログインしようとすると、設定した無効なユーザー名/パスワードエラーが発生します。問題は、設定したとおりに入力していることを知っていることです。しかし、私はできます。に行く
<credentials>
<User>
</credentials>
<roleManager enabled="true" defaultProvider="SqlRoleProvider">
<providers>
<clear/>
<add name="SqlRoleProvider" applicationName="UCX" connectionStringName="UCXDBConnectionString"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="3">
<credentials passwordFormat="Clear">
<!--<user name="admin" password="password"/> If I uncomment this I can access site. -->
</credentials>
</forms>
</authentication>
<authorization>
<allow roles="Admin" />
</authorization>
<membership
defaultProvider="SqlProvider" userIsOnlineTimeWindow="20">
<providers>
<clear/>
<add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="UCXDBConnectionString" enablePasswordRetrieval="false" />
</providers>
</membership>
私のWeb設定で、そのユーザーでログインすると、サイトにアクセスできます。しかし、これは私たちが望むものにとっては非常に悪いことです。私はデータベースをチェックしました、そして、ユーザーはそこにいます。私はそれらにアクセスできません。
助言がありますか?