mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Do not enable "set username and password" automatically if public key auth is used
This commit is contained in:
parent
eb011bb049
commit
4daff1ba79
1 changed files with 9 additions and 5 deletions
|
@ -174,6 +174,9 @@ Popup {
|
|||
text: qsTr("Allow public-key authentication only")
|
||||
onCheckedChanged: {
|
||||
if (checked) {
|
||||
if (chkSetUser.checked && fieldUserName.text == "pi" && fieldUserPassword.text.length == 0) {
|
||||
chkSetUser.checked = false
|
||||
}
|
||||
fieldPublicKey.forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
@ -462,6 +465,12 @@ Popup {
|
|||
fieldHostname.text = settings.hostname
|
||||
chkHostname.checked = true
|
||||
}
|
||||
if ('sshAuthorizedKeys' in settings) {
|
||||
fieldPublicKey.text = settings.sshAuthorizedKeys
|
||||
radioPubKeyAuthentication.checked = true
|
||||
chkSSH.checked = true
|
||||
}
|
||||
|
||||
if ('sshUserPassword' in settings) {
|
||||
fieldUserPassword.text = settings.sshUserPassword
|
||||
fieldUserPassword.alreadyCrypted = true
|
||||
|
@ -477,11 +486,6 @@ Popup {
|
|||
fieldUserName.text = settings.sshUserName
|
||||
chkSetUser.checked = true
|
||||
}
|
||||
if ('sshAuthorizedKeys' in settings) {
|
||||
fieldPublicKey.text = settings.sshAuthorizedKeys
|
||||
chkSSH.checked = true
|
||||
radioPubKeyAuthentication.checked = true
|
||||
}
|
||||
if ('wifiSSID' in settings) {
|
||||
fieldWifiSSID.text = settings.wifiSSID
|
||||
if ('wifiSSIDHidden' in settings && settings.wifiSSIDHidden) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue