Do not accept empty password when adding new user; closes #316
This commit is contained in:
parent
5213853524
commit
d4554d2fa7
@ -18,6 +18,10 @@ program
|
|||||||
prompt: "[thelounge] Enter password: ",
|
prompt: "[thelounge] Enter password: ",
|
||||||
silent: true
|
silent: true
|
||||||
}, function(err, password) {
|
}, function(err, password) {
|
||||||
|
if (!password) {
|
||||||
|
log.error("Password cannot be empty.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!err) {
|
if (!err) {
|
||||||
add(manager, name, password);
|
add(manager, name, password);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user