System.Web.Security.SqlMembershipProvider.ValidateUser C# (CSharp) Method

ValidateUser() public method

public ValidateUser ( string username, string password ) : bool
username string
password string
return bool
		public override bool ValidateUser (string username, string password)
		{
			if (username.Length == 0)
				return false;

			CheckParam ("username", username, 256);
			EmitValidatingPassword (username, password, false);

			PasswordInfo pi = ValidateUsingPassword (username, password);
			if (pi != null) {
				pi.LastLoginDate = DateTime.UtcNow;
				UpdateUserInfo (username, pi, true, true);
				return true;
			}
			return false;
		}