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

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