예제 #1
0
 /*
  * Pre:  email must be a valid email address
  * Post: The staff member's user credentials are set
  * @param email is the staff member's email address
  * @param password is the staff memeber's unencrypted password
  */
 private void SetCredentials(string email, string password)
 {
     credentials = new UserCredentials(email, password, UtilityClass.UserTypes.Staff, true);
 }
예제 #2
0
 //constructor for existing customer
 public Customer(int id, string firstName, string lastName, string phone, string email, string password, UtilityClass.UserTypes userType)
     : base(id, firstName, lastName, phone, email)
 {
     credentials = new UserCredentials(email, password, userType, false);
 }