mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
Update basic-auth-hook.js
This commit is contained in:
parent
b9c432d617
commit
20e690bea2
@ -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',
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user