:app to _app : bugfix
This commit is contained in:
parent
1758243de9
commit
6f890dbe85
|
@ -153,7 +153,7 @@ exports.serveApp = async function(ctx) {
|
||||||
|
|
||||||
// only set the appId cookie for /appId .. we COULD check for valid appIds
|
// only set the appId cookie for /appId .. we COULD check for valid appIds
|
||||||
// but would like to avoid that DB hit
|
// 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) {
|
if (looksLikeAppId && !ctx.isAuthenticated) {
|
||||||
const anonUser = {
|
const anonUser = {
|
||||||
userId: "ANON",
|
userId: "ANON",
|
||||||
|
|
Loading…
Reference in New Issue