fix
This commit is contained in:
@ -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 {
|
||||
|
||||
};
|
||||
}),
|
||||
});
|
Reference in New Issue
Block a user