feat: add password login

This commit is contained in:
wancat committed 2023-09-11 22:59:41 +08:00
1 parent a5dbcd7db4
commit bcdd04715d
8 files changed
+390 -12

No files matched your search

+4
View File
@@ -11,12 +11,16 @@ import loadAndUpdateQuests from './utils/quest.js'
import config from './config.js'
import errorHandler from './middleware/error.js'
import expiryRemovalScheduler from './containers/expiryChecker.js'
import { createTestUser } from './utils/auth.js'
async function main() {
const app = express()
const server = http.createServer(app)
socketServer(server)
await connectDB()
await createTestUser()
await loadAndUpdateQuests()
expiryRemovalScheduler()