@Override
 public void onPasswordSuccess(User user) {
   Toast.makeText(this, getString(R.string.set_password_success), Toast.LENGTH_SHORT).show();
   if (StringUtils.isEmpty(user.getNick())) {
     toCreateUserInfo();
   }
   finish();
 }
  private void doRegister() {
    String password = ((EditText) findViewById(R.id.et_register_password)).getText().toString();
    if (password.length() < 6) {
      Toast.makeText(this, getString(R.string.input_password_tip), Toast.LENGTH_SHORT).show();
      return;
    }

    String verify = ((EditText) findViewById(R.id.et_register_verify)).getText().toString();
    if (StringUtils.isEmpty(verify)) {
      Toast.makeText(this, getString(R.string.input_smscode_tip), Toast.LENGTH_SHORT).show();
      return;
    }

    AppModel.INSTANCE.getLogin().register(phone, password, verify);
  }