]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/PTY.pm
update files from pve-common
[pve-client.git] / PVE / APIClient / PTY.pm
index 00010df705f1ba3b3ed804cf2dc5e02698da829e..ee5010c6a737f472f1447b4ae2f8d3b598821536 100644 (file)
@@ -228,6 +228,13 @@ sub read_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 {