From 71af08189e7797bb80f05727151bb028c763b5e5 Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Thu, 24 Mar 2022 18:03:31 +0800 Subject: [PATCH] Clear useless code --- server/auth.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/server/auth.js b/server/auth.js index 5d3597cca..1196f94d7 100644 --- a/server/auth.js +++ b/server/auth.js @@ -47,13 +47,6 @@ function myAuthorizer(username, password, callback) { }); } -/** - * If disabled auth, it does not call `next`. - */ -exports.checkBasicAuth = async (req, res, next) => { - -}; - exports.basicAuth = async function (req, res, next) { const middleware = basicAuth({ authorizer: myAuthorizer,