1
0
Fork 0
mirror of synced 2024-07-05 06:20:55 +12:00

bugfix - appId not recognised in static.js controller

This commit is contained in:
Michael Shanks 2020-10-08 22:31:27 +01:00
parent 4a13be8cf8
commit a417a4906b

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 = /^[0-9a-f]{32}$/.test(appId)
const looksLikeAppId = /^app:[0-9a-f]{32}$/.test(appId)
if (looksLikeAppId && !ctx.isAuthenticated) {
const anonUser = {
userId: "ANON",