Skip to content

Commit 1fb241b

Browse files
committed
address review comments
1 parent 3364f20 commit 1fb241b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

api/src/main/java/org/apache/cloudstack/api/response/LoginCmdResponse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public class LoginCmdResponse extends AuthenticationCmdResponse {
9292

9393
@SerializedName(value = ApiConstants.PASSWORD_CHANGE_REQUIRED)
9494
@Param(description = "Indicates whether the User is required to change password on next login.", since = "4.23.0")
95-
private String passwordChangeRequired;
95+
private Boolean passwordChangeRequired;
9696

9797
public String getUsername() {
9898
return username;
@@ -228,11 +228,11 @@ public void setManagementServerId(String managementServerId) {
228228
this.managementServerId = managementServerId;
229229
}
230230

231-
public String getPasswordChangeRequired() {
231+
public Boolean getPasswordChangeRequired() {
232232
return passwordChangeRequired;
233233
}
234234

235235
public void setPasswordChangeRequired(String passwordChangeRequired) {
236-
this.passwordChangeRequired = passwordChangeRequired;
236+
this.passwordChangeRequired = Boolean.parseBoolean(passwordChangeRequired);
237237
}
238238
}

ui/src/store/modules/user.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,6 @@ const user = {
511511
vueProps.$localStorage.remove(ACCESS_TOKEN)
512512
vueProps.$localStorage.remove(HEADER_NOTICES)
513513

514-
vueProps.$localStorage.remove(PASSWORD_CHANGE_REQUIRED)
515514
commit('SET_PASSWORD_CHANGE_REQUIRED', false)
516515

517516
logout(state.token).then(() => {

0 commit comments

Comments
 (0)