feat: Remove shared/
This commit is contained in:
@@ -2,7 +2,7 @@ import { pbkdf2Sync, randomBytes } from "crypto";
|
||||
|
||||
import { Db } from "mongodb";
|
||||
|
||||
import { IUser } from "shared/user";
|
||||
import { IUser } from "../models/user";
|
||||
|
||||
export async function isAuthenticated(token: string, db: Db): Promise<boolean> {
|
||||
// See if we can find a session with that token
|
||||
@@ -34,6 +34,8 @@ export async function performLogin(username: string, password: string, db: Db):
|
||||
//@ts-ignore
|
||||
classId: user.classId,
|
||||
|
||||
lastReview: user.lastReview,
|
||||
|
||||
// TODO: Implement
|
||||
score: 4,
|
||||
sessionToken,
|
||||
|
||||
Reference in New Issue
Block a user