私は を使用してAsp.Net Forms Authentication
おり、パスワードをHashed
形式で保存していますが、Question
andが必要です。私の質問は、ユーザーが自分の答えと自分のAnswer
を忘れた場合にどうなるかということです。それがなければ、ランダムを生成することはできません。そのような場合はどうなりますか?新しいアカウントを作成するオプションしか残っていないユーザーです。または、テーブルをリンクして、彼の質問と回答をプレーンテキストで保存し、パスワードをリセットしながら回答を渡す必要があります。回。どうすれば解決できますか。どんな提案でも大歓迎です。ありがとうsecurity question's
password
password
3 に答える
As others have said, this question is not really a programming question, and more of a security design question and would be better answered in http://security.stackexchange.com .
That being said, if the security needs of your website are relatively low (not bank level security), I think it's sufficient to email a new password to the email address that you have on file for the user. If the user is able to authenticate with their email provider, then they have proven that they are themselves (assuming their email account hasn't been compromised). This is how many web sites operate.
ユーザーが自分の質問/回答を知らない場合は、いつでもシステムにパスワード回復ページへのリンクを含む電子メールを送信させることができます。ここで、アカウントの作成時に入力したより機密性の高い情報 (名前、生年月日など) に基づいて、回答を知っておく必要がある質問をすることができます。
これは、あなたのサイトが銀行サイトのようなものではなく、セキュリティの低いサイトである場合にのみ実行する必要があることに注意してください. それ以外の場合は、Walter と AakashM のアドバイスに従い、セキュリティ フォーラムに投稿してください。
あなたはそれがあなたを助けると思う次のリンクを見るべきです。http://www.asp.net/web-forms/tutorials/security/admin/recovering-and-changing-passwords-cs