From de666b93770ef083bc6fb73c410e75c36180f95e Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Sun, 26 Dec 2021 13:08:05 +0000 Subject: [PATCH] Check if password can be changed --- imports/NeoChat/Settings/AccountsPage.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imports/NeoChat/Settings/AccountsPage.qml b/imports/NeoChat/Settings/AccountsPage.qml index cd914352b..ee5c233f7 100644 --- a/imports/NeoChat/Settings/AccountsPage.qml +++ b/imports/NeoChat/Settings/AccountsPage.qml @@ -154,17 +154,20 @@ Kirigami.ScrollablePage { Controls.TextField { id: currentPassword Kirigami.FormData.label: i18n("Current Password:") + enabled: userEditSheet.connection !== undefined && userEditSheet.connection.canChangePassword !== false echoMode: TextInput.Password } Controls.TextField { id: newPassword Kirigami.FormData.label: i18n("New Password:") + enabled: userEditSheet.connection !== undefined && userEditSheet.connection.canChangePassword !== false echoMode: TextInput.Password } Controls.TextField { id: confirmPassword Kirigami.FormData.label: i18n("Confirm new Password:") + enabled: userEditSheet.connection !== undefined && userEditSheet.connection.canChangePassword !== false echoMode: TextInput.Password }