Resolve "Set Password should be changed to Change Password once the user has set the password on User Profile screen"

This commit is contained in:
N Pex 2023-06-07 12:55:12 +00:00
parent 026a422230
commit 7b3b167afe
5 changed files with 17 additions and 48 deletions

View file

@ -946,6 +946,14 @@ export default {
}
},
setUserDisplayName(name) {
if (this.matrixClient) {
return this.matrixClient.setDisplayName(name || this.user.userId).then(() => this.userDisplayName = name).catch(err => console.err("Failed to set display name", err));
} else {
return Promise.reject("No matrix client");
}
},
setPassword(oldPassword, newPassword) {
if (this.matrixClient && this.currentUser) {
const authDict = {