Skip to content

Commit

Permalink
Remove lowercase conversion in validateAdmin
Browse files Browse the repository at this point in the history
Damn, always deploy to development before production to catch stuff stupid like this. Ugh.
  • Loading branch information
Xevion committed Feb 2, 2023
1 parent ac63108 commit cf172b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/server_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export async function validateAdmin(
response: ServerResponse
): Promise<boolean> {
// Acquire admin credentials
const username = request.cookies[cookies.admin_username]?.toLowerCase();
const password = request.cookies[cookies.admin_password]?.toLowerCase();
const username = request.cookies[cookies.admin_username];
const password = request.cookies[cookies.admin_password];

if (username == null || password == null) {
if (username != null) deleteCookie(cookies.admin_username, { req: request, res: response });
Expand Down

0 comments on commit cf172b7

Please sign in to comment.