我想找回用户的密码,但我总是得到空值,请问有什么想法吗?
代码是:
public static boolean getUser( int userId) {
TAG = "UserService.getUser";
userId = 195655;
QBUsers.getUser(userId, new QBCallbackImpl() {
@Override
public void onComplete(Result result) {
if (result.isSuccess()) {
QBUserResult qbUserResult = (QBUserResult) result;
Log.d(TAG,"User: "+ qbUserResult.getUser().toString());
Log.d(TAG, "Password: "+qbUserResult.getUser().getPassword());
} else {
for (String s : result.getErrors()) {
Log.d(TAG, "createSession error: " + s);
}
}
}
});
// TODO Auto-generated method stub
return false;
}
所有用户都会发生这种情况,我无法获取密码值。我需要做一些特别的事情吗?
感谢你的帮助。