Sensorberg Smart Spaces SDK for Android / com.sensorberg.smartworkspace.sdk / UserManager / changePassword

changePassword

abstract fun changePassword(currentPassword: String, newPassword: String, newPasswordConfirmation: String): LiveData<SimpleResponse<Void>>

Changes the user password on the backend. This option is only valid if the application uses usernamePasswordLogin.

Return
a LiveData with the result of the backend call. When the operation succeed the value will change to "success", in case of failure there will be an error message