Beispiel #1
0
        public ServiceCustomer VerifyLogin(string enteredPassword, string email)
        {
            ServiceCustomer serviceCustomer = null;
            bool            success         = false;

            serviceCustomer = dataCustomer.GetCustomerByEmail(email);
            if (serviceCustomer != null)
            {
                success = VerifyPassword(enteredPassword, serviceCustomer.Hash, serviceCustomer.Salt);
                if (success == false)
                {
                    serviceCustomer = null;
                }
            }

            return(serviceCustomer);
        }