@Override
protected Object loginUsernamePassword(String username, String password) {
UserAuthManager userAuthManager = AppCore.ref.getPetite().getBean(UserAuthManager.class);
// check username/password
User user = userAuthManager.findUser(username, password);
if (user == null) {
return null;
}
// login
userAuthManager.login(user);