db = require("./redis") bcrypt = require('bcrypt') 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() ) ) ) om+xml'/>
aboutsummaryrefslogblamecommitdiffstats
path: root/public/js/deposit.coffee
blob: 331d7975c3d983cb71c628724667a4eebfaff24d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18