This commit is contained in:
waveringana 2022-12-13 17:41:31 +00:00
parent 34e991f017
commit b217248293
13 changed files with 1229 additions and 406 deletions

View file

@ -3,10 +3,10 @@ import express from "express";
import passport from "passport";
import {Strategy as LocalStrategy} from "passport-local";
import {User} from "../types/lib"
import {User} from "../types/lib";
import {db, UserRow} from "../types/db";
let router = express.Router();
const router = express.Router();
passport.use(new LocalStrategy(function verify(username, password, cb) {
db.get("SELECT * FROM users WHERE username = ?", [username], function(err: Error, row: UserRow) {