0
このコントローラ:私はそれasp.netのMVC 5パスワードをハッシュする方法
をハッシュする方法フォーム2- user.UserPassを投稿する方法
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Create([Bind(Include = "UserID,UserName,UserEmail,UserPass")] User user)
{
user.UserPass= "12345999";
if (ModelState.IsValid)
{
db.Users.Add(user);
db.SaveChanges();
return RedirectToAction("Index");
}
return View(user);
}
1-
ありがとうございます
https://www.asp.net/identity/overview/getting-started/introduction-to-aspnet-identity – SilentTremor
[Salted Password Hashing - それを正しく行う](https://crackstation.net/hashing-security) .htm)なぜあなたは[Identity](https://www.asp.net/identity) –
を使用するのではなく、手動でこれをやりたがっているのですか?私はアイデンティティで自分自身をやっているので、このコントローラーを解決する必要があります –