|
|
@@ -233,7 +233,7 @@ public class SignUpFgt extends BaseFragment {
|
|
|
private void registerAccount() {
|
|
|
if (checkAgreement()) return;
|
|
|
if (!validateAccount()) return;
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
+ final JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("user_name", userNameBox.getText().toString().trim());
|
|
|
jsonObject.put("password", passwordBox.getText().toString().trim());
|
|
|
jsonObject.put("invitation_code", ChannelContent.getInstance().getChannel_name());
|
|
|
@@ -265,7 +265,7 @@ public class SignUpFgt extends BaseFragment {
|
|
|
SpUtils.saveToken(SheepApp.getInstance(), loginEty.getToken());
|
|
|
DataUtil.getInstance().initUserEntity(loginEty.getUser());
|
|
|
}
|
|
|
- SpUtils.saveUp(getContext(),loginEty.getUser().getId(), passwordBox.getText().toString().trim());
|
|
|
+ SpUtils.saveUp(getContext(),loginEty.getUser().getId(), jsonObject.getString("password"));
|
|
|
mController.whenLoginSuccess(LoginController.PLATFORM_ACCOUNT, loginEty);
|
|
|
}
|
|
|
}
|