diff options
| author | Adam Soltys <[email protected]> | 2018-03-15 22:25:40 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2018-03-15 22:25:40 -0700 |
| commit | 112e9ec9b71c1930ca51d52db58acc58ee36088c (patch) | |
| tree | b0b74c065b202a97f6ed0316a1e5bb54d77ff2a3 /install.js | |
| parent | 869b33813e72689c053ba8505c8806129ec3c7d5 (diff) | |
| download | coinos-server-112e9ec9b71c1930ca51d52db58acc58ee36088c.tar.gz coinos-server-112e9ec9b71c1930ca51d52db58acc58ee36088c.zip | |
clean up unused files
Diffstat (limited to 'install.js')
| -rw-r--r-- | install.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/install.js b/install.js deleted file mode 100644 index 6432fb1d..00000000 --- a/install.js +++ /dev/null @@ -1,21 +0,0 @@ -(function() { - var bcrypt, db; - db = require("./redis"); - bcrypt = require('bcrypt'); - - db.get("user:admin", function(err, res) { - if (!res) { - return bcrypt.hash('admin', 12, function(err, hash) { - db.sadd("users", "user:admin"); - return db.hmset("user:admin", { - username: 'admin', - password: hash - }, function() { - console.log("Created admin user with password 'admin'"); - return process.exit(); - }); - }); - } - }); - -}).call(this); |
