예제 #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));
  }
예제 #2
0
  @Override
  public String login(String email, String pass) throws NoUserFoundException {
    User user = userDao.find(email);

    // generate access key
    return UUID.randomUUID().toString();
  }
예제 #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;
  }
예제 #4
0
 @Override
 public User showUserInfo(int id) throws NoUserFoundException {
   return userDao.find(id);
 }
예제 #5
0
 @Override
 public User findByEmail(String email) throws NoUserFoundException {
   return userDao.find(email);
 }