mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-25 20:02:46 +01:00
Auto stash before merge of "dev" and "origin/dev"
This commit is contained in:
parent
e074394b13
commit
c5fc16f241
@ -8,6 +8,7 @@ import { findSession } from 'lib/session';
|
||||
import {
|
||||
badRequest,
|
||||
createMiddleware,
|
||||
forbidden,
|
||||
parseSecureToken,
|
||||
tooManyRequest,
|
||||
unauthorized,
|
||||
@ -38,6 +39,9 @@ export const useSession = createMiddleware(async (req, res, next) => {
|
||||
if (e.message === 'Usage Limit.') {
|
||||
return tooManyRequest(res, e.message);
|
||||
}
|
||||
if (e.message.startsWith('Website not found:')) {
|
||||
return forbidden(res, e.message);
|
||||
}
|
||||
return badRequest(res, e.message);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user