Only warning now... Green pipeline?
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-02 11:45:41 -04:00
parent 4176b0be51
commit 92d43edd7a
9 changed files with 381 additions and 33 deletions

View File

@@ -1,10 +1,10 @@
import koaPassport from 'koa-passport';
import { Strategy } from 'passport-local';
import passport from 'koa-passport';
import { Strategy as LocalStrategy } from 'passport-local';
import Auth from '../model/auth';
export const localStrategy = passport.use(
new Strategy(async (username, password, done) => {
new LocalStrategy(async (username, password, done) => {
const user = await Auth.findOne({
where: {
username,