Added a form for entering a passphrase for a private ssh key and the corresponding logic for processing a private key
This commit is contained in:
parent
f6ca22ecdd
commit
f3aef67be6
10 changed files with 161 additions and 8 deletions
|
@ -234,6 +234,9 @@ Window {
|
|||
popupWarning.popupWarningText = message
|
||||
popupWarning.open()
|
||||
}
|
||||
function onShowPassphraseRequestMessage() {
|
||||
popupWithInputField.open()
|
||||
}
|
||||
}
|
||||
|
||||
MessageDialog {
|
||||
|
@ -355,4 +358,21 @@ Window {
|
|||
PopupWarning {
|
||||
id: popupWarning
|
||||
}
|
||||
PopupWithInputField {
|
||||
id: popupWithInputField
|
||||
placeholderText: "Enter private key passphrase"
|
||||
yesFunc: function() {
|
||||
editingFinished()
|
||||
close()
|
||||
UiLogic.passphraseDialogClosed()
|
||||
text = ""
|
||||
}
|
||||
noFunc: function() {
|
||||
close()
|
||||
UiLogic.passphraseDialogClosed()
|
||||
}
|
||||
onEditingFinished: {
|
||||
UiLogic.privateKeyPassphrase = text
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue