/// <summary> /// Resets the password. /// </summary> /// <param name="passwordResetToken">The password reset token.</param> /// <param name="newPassword">The new password.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns> /// <exception cref="System.InvalidOperationException"> /// The <seealso cref="Initialized"/> method was not called.-or- /// The <seealso cref="InitializeDatabaseConnection(string)"/> method was not called.-or- /// The <seealso cref="MySqlSimpleMembershipProvider"/> membership provider is not registered in the configuration of your site. /// For more information, contact your site's system administrator. /// </exception> public static bool ResetPassword(string passwordResetToken, string newPassword) { MySqlSimpleMembershipProvider provider = VerifyProvider(); Debug.Assert(provider != null); // VerifyProvider checks this return(provider.ResetPasswordWithToken(passwordResetToken, newPassword)); }