mirror of
https://github.com/rwinkhart/sshyp-labs.git
synced 2026-08-28 04:46:48 -04:00
upgradeRCW: Indicate old/new passphrase entry fields
This commit is contained in:
@@ -19,16 +19,16 @@ func main() {
|
||||
// get info from user
|
||||
var oldRCWPassphrase, newRCWPassphrase []byte
|
||||
for {
|
||||
oldRCWPassphrase = front.InputHidden("RCW passphrase:")
|
||||
if !bytes.Equal(oldRCWPassphrase, front.InputHidden("Confirm RCW passphrase:")) {
|
||||
oldRCWPassphrase = front.InputHidden("Old RCW passphrase:")
|
||||
if !bytes.Equal(oldRCWPassphrase, front.InputHidden("Confirm old RCW passphrase:")) {
|
||||
fmt.Println(back.AnsiError + "Passphrases do not match" + back.AnsiReset)
|
||||
continue
|
||||
}
|
||||
break
|
||||
}
|
||||
for {
|
||||
newRCWPassphrase = front.InputHidden("RCW passphrase:")
|
||||
if !bytes.Equal(newRCWPassphrase, front.InputHidden("Confirm RCW passphrase:")) {
|
||||
newRCWPassphrase = front.InputHidden("New RCW passphrase:")
|
||||
if !bytes.Equal(newRCWPassphrase, front.InputHidden("Confirm new RCW passphrase:")) {
|
||||
fmt.Println(back.AnsiError + "Passphrases do not match" + back.AnsiReset)
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user