1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00

:app to _app : bugfix

This commit is contained in:
Michael Shanks 2020-10-09 17:14:02 +01:00
parent 127ce3b59d
commit 79c890519a

View file

@ -153,7 +153,7 @@ exports.serveApp = async function(ctx) {
// only set the appId cookie for /appId .. we COULD check for valid appIds
// but would like to avoid that DB hit
const looksLikeAppId = /^app:[0-9a-f]{32}$/.test(appId)
const looksLikeAppId = /^app_[0-9a-f]{32}$/.test(appId)
if (looksLikeAppId && !ctx.isAuthenticated) {
const anonUser = {
userId: "ANON",