aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl4
1 files changed, 4 insertions, 0 deletions
diff --git a/prosodyctl b/prosodyctl
index 8471e7ab..837be552 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -158,6 +158,10 @@ local function read_password()
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