Example #1
0
 public void insertEmployee(String username, String password, String name)
 {
     try
     {
         userDAO.insertEmployee(username, MD5Convert.getMd5Hash(password), name);
     }
     catch (Exception exception) {
         throw exception;
     }
 }
Example #2
0
 public User login(String username, String password) {
     User user = null;
     try
     {
         user = userDAO.getUser(username, MD5Convert.getMd5Hash(password));
         //MessageBox.Show("In DAO" + user.name);
     }
     catch ( Exception exception)
     {   
         throw exception;
     }
     return user;
 }