# HG changeset patch # User Matthew Wild # Date 1247068439 -3600 # Node ID 330b8437ac354e6e574cc68b2b53fc20c6dcb2fa # Parent 56d05ba0016955999d4bd0fbf32b21a94427aefb prosodyctl: Quit when user pressed ^C in password prompts diff -r 56d05ba00169 -r 330b8437ac35 prosodyctl --- a/prosodyctl Wed Jul 08 16:48:49 2009 +0100 +++ b/prosodyctl Wed Jul 08 16:53:59 2009 +0100 @@ -158,6 +158,10 @@ while true do io.write("Enter new password: "); password = getpass(); + if not password then + show_message("No password - cancelled"); + return; + end io.write("Retype new password: "); if getpass() ~= password then if not show_yesno [=[Passwords did not match, try again? [Y/n]]=] then