Пример #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);
 }