mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
Update basic-auth-hook.js
This commit is contained in:
parent
68e73da236
commit
f5f8cde16b
@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user