mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
webaccess: Return 401 for authn failure, 403 for authz failure
This makes it possible for reverse proxies to transform 403 errors into something like "upgrade to a premium account to access this pad". Also add some webaccess tests.
This commit is contained in:
parent
ff4da04907
commit
53fd0b4f98
4 changed files with 188 additions and 17 deletions
|
@ -45,7 +45,7 @@ let started = false;
|
|||
let stopped = false;
|
||||
|
||||
exports.start = async () => {
|
||||
if (started) return;
|
||||
if (started) return express.server;
|
||||
started = true;
|
||||
if (stopped) throw new Error('restart not supported');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue