1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

Update basic-auth-hook.js

This commit is contained in:
Ivar Conradi Østhus 2018-01-23 08:56:04 +01:00 committed by GitHub
parent b9c432d617
commit 20e690bea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');
}
});