Skip to content

Commit

Permalink
fix(admin): add error messages for login api
Browse files Browse the repository at this point in the history
  • Loading branch information
tedtribe committed Dec 6, 2023
1 parent 191bd0a commit 2bf243a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions pages/api/admin/login.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import { ADMIN_LOGIN_MESSAGE } from "@constants";
import { sessionOptions, withSessionRoute } from "lib/session";
import { withSessionRoute } from "lib/session";
import { NextApiHandler } from "next";
import {
fromRpcSig,
hashPersonalMessage,
toBuffer,
ecrecover,
bufferToHex,
pubToAddress,
} from "ethereumjs-util";
import dbConnect from "lib/mongodb";
import AdminModel from "models/admin";
import { verifySignature } from "utils/api/verify-signature";
Expand Down

0 comments on commit 2bf243a

Please sign in to comment.