@Override public User register(String email, String fullname, String phone, String pass) { // generate // with id return userDao.create(new User(email, fullname, phone, pass)); }
@Override public String login(String email, String pass) throws NoUserFoundException { User user = userDao.find(email); // generate access key return UUID.randomUUID().toString(); }
@Override public String login(String email, String pass) throws NoUserFoundException { User user = userDao.find(email); // generate access key String accessKey = "123456"; return accessKey; }
@Override public User showUserInfo(int id) throws NoUserFoundException { return userDao.find(id); }
@Override public User findByEmail(String email) throws NoUserFoundException { return userDao.find(email); }