Example #1
0
  @Override
  public User register(String email, String fullname, String phone, String pass) {
    // generate

    // with id
    return userDao.create(new User(email, fullname, phone, pass));
  }
Example #2
0
  @Override
  public String login(String email, String pass) throws NoUserFoundException {
    User user = userDao.find(email);

    // generate access key
    return UUID.randomUUID().toString();
  }
Example #3
0
  @Override
  public String login(String email, String pass) throws NoUserFoundException {
    User user = userDao.find(email);

    // generate access key
    String accessKey = "123456";

    return accessKey;
  }
Example #4
0
 @Override
 public User showUserInfo(int id) throws NoUserFoundException {
   return userDao.find(id);
 }
Example #5
0
 @Override
 public User findByEmail(String email) throws NoUserFoundException {
   return userDao.find(email);
 }