一部のアクションでは、ユーザーにパスワードを再入力してもらいます。追加のログインでチェックを行いますが、それは正しいですか? 2 回目のログインには悪い副作用がありますか?
[Authorize(Roles="Administrator")]
public ActionResult SpecialAction()
{
...
}
[HttpPost]
public ActionResult SpecialAction(string pwd)
{
if(!string.IsNullOrEmpty(pwd) && WebSecurity.Login(User.Identity.Name, pwd))
{
}
}