Check if password can be changed
This commit is contained in:
committed by
Tobias Fella
parent
5f41378214
commit
de666b9377
@@ -154,17 +154,20 @@ Kirigami.ScrollablePage {
|
|||||||
Controls.TextField {
|
Controls.TextField {
|
||||||
id: currentPassword
|
id: currentPassword
|
||||||
Kirigami.FormData.label: i18n("Current Password:")
|
Kirigami.FormData.label: i18n("Current Password:")
|
||||||
|
enabled: userEditSheet.connection !== undefined && userEditSheet.connection.canChangePassword !== false
|
||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
}
|
}
|
||||||
Controls.TextField {
|
Controls.TextField {
|
||||||
id: newPassword
|
id: newPassword
|
||||||
Kirigami.FormData.label: i18n("New Password:")
|
Kirigami.FormData.label: i18n("New Password:")
|
||||||
|
enabled: userEditSheet.connection !== undefined && userEditSheet.connection.canChangePassword !== false
|
||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
|
|
||||||
}
|
}
|
||||||
Controls.TextField {
|
Controls.TextField {
|
||||||
id: confirmPassword
|
id: confirmPassword
|
||||||
Kirigami.FormData.label: i18n("Confirm new Password:")
|
Kirigami.FormData.label: i18n("Confirm new Password:")
|
||||||
|
enabled: userEditSheet.connection !== undefined && userEditSheet.connection.canChangePassword !== false
|
||||||
echoMode: TextInput.Password
|
echoMode: TextInput.Password
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user