예제 #1
0
  @Override
  public boolean isExist(String name, String pass) {
    Admin admin = repository.findAdmin(name);
    if (admin == null || admin.getName() == null || admin.getPass() == null) {
      return false;
    }

    if (!admin.getName().equalsIgnoreCase(name)) {
      return false;
    }

    if (admin.getPass().equals(pass)) return true;

    return false;
  }
예제 #2
0
 @Override
 public boolean isExist(Admin admin) {
   return isExist(admin.getName(), admin.getPass());
 }