- - PR -
passwordFormat="Encrypted"の使い方
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2007-09-03 11:42
お世話になっております。
http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=40891&forum=7&8 がすっかり埋もれてしまったので、項目を絞って質問させていただきます。 web.configでLocalSqlServerのpasswordFormatをEncryptedに変更したいのですが、passwordFormatをHashedからEncryptedに変更し、enablePasswordRetrievalをfalseからtrueに変更しただけでは、webサイト管理でユーザの登録もできません。 passwordFormat="Encrypted"を使うための記述方法を教えてください。 現在は次のように記述しています。 <add connectionStringName="LocalSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" applicationName="/" requiresUniqueEmail="false" passwordFormat="Encrypted" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" passwordStrengthRegularExpression="" name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
|
投稿日時: 2007-09-04 23:16
http://msdn2.microsoft.com/ja-jp/library/system.web.security.membershipprovider.passwordformat(VS.80).aspx
Encryptパスワードを使うにはweb.configにmachineKey要素を設定する必要があるようです。 |
1