aboutsummaryrefslogtreecommitdiffstats
path: root/src/install.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2017-01-21 18:56:05 -0800
committerAdam Soltys <[email protected]>2017-01-21 18:56:05 -0800
commitc413e457579b68b7a92ab47cdd867202ee7bb47e (patch)
tree4d84c4af06e936a54890468cc4351deabcd8c0f9 /src/install.coffee
parent931f2262d9ef7f571fe87b176f6cd531b3579a68 (diff)
downloadcoinos-server-c413e457579b68b7a92ab47cdd867202ee7bb47e.tar.gz
coinos-server-c413e457579b68b7a92ab47cdd867202ee7bb47e.zip
Ditch coffeescript
Diffstat (limited to 'src/install.coffee')
-rw-r--r--src/install.coffee16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/install.coffee b/src/install.coffee
deleted file mode 100644
index 7ba2449d..00000000
--- a/src/install.coffee
+++ /dev/null
@@ -1,16 +0,0 @@
-db = require("./redis")
-bcrypt = require('bcryptjs')
-
-db.get("user:admin", (err, res) ->
- if !res
- bcrypt.hash('admin', 12, (err, hash) ->
- db.sadd("users","user:admin")
- db.hmset("user:admin",
- username: 'admin'
- password: hash,
- , ->
- console.log("Created admin user with password 'admin'")
- process.exit()
- )
- )
-)