From f5f8cde16be67a8951b43594f34b3c19d4b1f7d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 23 Jan 2018 08:56:04 +0100 Subject: [PATCH] Update basic-auth-hook.js --- examples/basic-auth-hook.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/basic-auth-hook.js b/examples/basic-auth-hook.js index ea0c88a765..70ec49a3fe 100644 --- a/examples/basic-auth-hook.js +++ b/examples/basic-auth-hook.js @@ -16,10 +16,7 @@ function basicAuthentication(app) { return res .status('401') .set({ 'WWW-Authenticate': 'Basic realm="example"' }) - .send({ - message: 'You must be authenticated to use Unleash', - path: '/custom/login', - }); + .send('access denied'); } });