Archived
feat: Remove shared/
This commit is contained in:
1 parent
65070b1f5b
commit
fdaa9cb8f3
8 files changed
+89
-80
No files matched your search
@@ -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