projects
/
pve-common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix #1819: fork_worker: ensure sync'ed workers control terminal
[pve-common.git]
/
src
/
PVE
/
PTY.pm
diff --git
a/src/PVE/PTY.pm
b/src/PVE/PTY.pm
index 23d76c0d02f9028d1b394ff32d5e8b6bb4fbf369..e433c4ec442a6cfdd1fae24e242ce1432215b760 100644
(file)
--- a/
src/PVE/PTY.pm
+++ b/
src/PVE/PTY.pm
@@
-228,6
+228,13
@@
sub read_password($;$$) {
return $password;
}
return $password;
}
+sub get_confirmed_password {
+ my $pw1 = read_password('Enter new password: ');
+ my $pw2 = read_password('Retype new password: ');
+ die "passwords do not match\n" if $pw1 ne $pw2;
+ return $pw1;
+}
+
# Class functions
sub new {
# Class functions
sub new {