2010-12-10 87 views

回答

1

內部發出的身份驗證Cookie只是檢查郵件相匹配的密碼,並使用電子郵件作爲用戶名的身份驗證Cookie您的控制器動作:

[HttpPost] 
public ActionResult Login(string email, string password) 
{ 
    // TODO: query your membership provider and verify if the given email 
    // matches the password and if they match emit the authentication cookie 
    // using the email as username 

} 
相關問題