[web] migrate token access page to bs5 (#23474)

GitOrigin-RevId: 2a6c148aa52bfa109ba8a072ff7fb6dbd559ebb3
This commit is contained in:
Kristina
2025-02-11 10:05:02 +01:00
committed by Copybot
parent 8c23ff2781
commit 4fe02c0598
5 changed files with 56 additions and 35 deletions
@@ -20,6 +20,7 @@ import { getSafeAdminDomainRedirect } from '../Helpers/UrlHelper.js'
import UserGetter from '../User/UserGetter.js'
import Settings from '@overleaf/settings'
import LimitationsManager from '../Subscription/LimitationsManager.js'
import SplitTestHandler from '../SplitTests/SplitTestHandler.js'
const orderedPrivilegeLevels = [
PrivilegeLevels.NONE,
@@ -111,6 +112,13 @@ async function tokenAccessPage(req, res, next) {
}
}
// Populates splitTestVariants with a value for the split test name and allows
// Pug to read it
await SplitTestHandler.promises.getAssignment(
req,
res,
'misc-b2c-pages-bs5'
)
res.render('project/token/access-react', {
postUrl: makePostUrl(token),
})