2010-12-10 13 views

Antwort

1

In Ihrer Controller-Aktion, die das Authentifizierungscookie emittiert nur prüfen, ob die E-Mail das Passwort übereinstimmt und die E-Mail als Benutzername für die Cookie-Authentifizierung verwenden:

[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 

} 
Verwandte Themen