SimpleMembershipProvider.ResetPasswordWithToken(String, String) Metoda

Definicja

Resetuje hasło po sprawdzeniu, czy określony token resetowania hasła jest prawidłowy.

public override bool ResetPasswordWithToken (string token, string newPassword);
override this.ResetPasswordWithToken : string * string -> bool
Public Overrides Function ResetPasswordWithToken (token As String, newPassword As String) As Boolean

Parametry

token
String

Token resetowania hasła.

newPassword
String

Nowe hasło.

Zwraca

prawda, jeśli hasło zostało zmienione; w przeciwnym razie, fałsz.

Wyjątki

newPassword ma wartość null lub jest pusta.

Klasa SimpleMembershipProvider nie została zainicjowana przy użyciu wywołania metody InitializeDatabaseConnection .

Dotyczy