Merge pull request #795 from MaxLeiter/MaxLeiter/empty-password

Do not accept empty password when adding new user; closes #316
This commit is contained in:
Pavel Djundik 2016-12-14 12:38:06 +02:00 committed by GitHub
commit 1065f17441

View File

@ -18,6 +18,10 @@ program
prompt: "[thelounge] Enter password: ",
silent: true
}, function(err, password) {
if (!password) {
log.error("Password cannot be empty.");
return;
}
if (!err) {
add(manager, name, password);
}