This commit is contained in:
2023-10-06 17:31:58 -04:00
parent 696160451e
commit 9d98bc42a5

View File

@ -1,25 +0,0 @@
import { z } from "zod";
import {
createTRPCRouter,
protectedProcedure,
publicProcedure,
} from "~/server/api/trpc";
// Main login router for backend
export const loginRouter = createTRPCRouter({
// Takes in username and password
login_attempt: publicProcedure
.input(z.object({ username: z.string(), password: z.string(), }))
.query(({ input }) => {
// Encryption
key: "This is the encrypted password"
// Storage in database
// Return for sign in
return {
};
}),
});