出于安全原因,禁用通过此API更新密码。请改用resetPassword API

时间:2013-03-11 16:18:07

标签: stackmob

我的一些用户(实际上只有2个)在收到我想要登录stackmob时遇到的错误。为什么我们会收到此错误?

public void createUser(final User stackmobUser) {
    stackmobUser.save(new StackMobCallback() {
        @Override
        public void success(String arg0) {
            login(stackmobUser);
        }

        @Override
        public void failure(StackMobException arg0) {
            Toast.makeText(getApplicationContext(), "user has not been created because of: " + arg0.getMessage(), Toast.LENGTH_LONG).show();
        }
    });
}

这是他们给出的例外情况:

com.stackmob.sdk.exception.StackMobHTTPResponseException: call failed with HTTP response code 400, headers Date=Mon, 11 Mar 2013 15:27:51 GMT, Content-Type=application/vnd.stackmob+json; version=0, Connection=close, Content-Length=122, body {"error":"Updating passwords via this API is disabled for security reasons. Use the resetPassword API instead."}

0 个答案:

没有答案