mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-30 23:01:34 +00:00
Updated db.js
This commit is contained in:
parent
7e3d177d00
commit
826286d13d
@ -1,5 +1,6 @@
|
||||
const logger = require('./../logger')
|
||||
const perms = require('./../controllers/permissionController')
|
||||
const randomstring = require('randomstring')
|
||||
|
||||
const init = function (db) {
|
||||
// Create the tables we need to store galleries and files
|
||||
@ -55,7 +56,7 @@ const init = function (db) {
|
||||
db.table('users').insert({
|
||||
username: 'root',
|
||||
password: hash,
|
||||
token: require('randomstring').generate(64),
|
||||
token: randomstring.generate(64),
|
||||
timestamp: Math.floor(Date.now() / 1000),
|
||||
permission: perms.permissions.superadmin
|
||||
}).then(() => {})
|
||||
|
Loading…
Reference in New Issue
Block a user