Fix 'shout add' crash
This commit is contained in:
parent
0365e01859
commit
0f68823298
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "shout",
|
"name": "shout",
|
||||||
"description": "A web IRC client",
|
"description": "A web IRC client",
|
||||||
"version": "0.25.1",
|
"version": "0.25.2",
|
||||||
"author": "Mattias Erming",
|
"author": "Mattias Erming",
|
||||||
"preferGlobal": true,
|
"preferGlobal": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -47,7 +47,7 @@ program
|
|||||||
if (err) {
|
if (err) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var hash = hashSync(password, 8);
|
var hash = bcrypt.hashSync(password, 8);
|
||||||
manager.addUser(
|
manager.addUser(
|
||||||
name,
|
name,
|
||||||
hash
|
hash
|
||||||
|
Loading…
Reference in New Issue
Block a user