1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-18 01:18:23 +02:00

Update basic-auth-hook.js

This commit is contained in:
Ivar Conradi Østhus 2018-01-23 08:56:04 +01:00
parent 68e73da236
commit f5f8cde16b

View File

@ -16,10 +16,7 @@ function basicAuthentication(app) {
return res return res
.status('401') .status('401')
.set({ 'WWW-Authenticate': 'Basic realm="example"' }) .set({ 'WWW-Authenticate': 'Basic realm="example"' })
.send({ .send('access denied');
message: 'You must be authenticated to use Unleash',
path: '/custom/login',
});
} }
}); });