mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
Merge pull request #28373 from overleaf/jel-testing-session-for-domain-capture
[web] Testing domain capture before enabling GitOrigin-RevId: 6ac62b39eedad613748a680aa26624126db8e1c1
This commit is contained in:
@@ -14,8 +14,15 @@ async function sign(payload, options = {}) {
|
||||
return token
|
||||
}
|
||||
|
||||
function getDecoded(token) {
|
||||
const key = Settings.jwt.key
|
||||
const decoded = JWT.verify(token, key)
|
||||
return decoded
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sign: callbackify(sign),
|
||||
getDecoded,
|
||||
promises: {
|
||||
sign,
|
||||
},
|
||||
|
||||
@@ -506,6 +506,7 @@ async function initialize(webRouter, privateApiRouter, publicApiRouter) {
|
||||
AuthenticationController.requireLogin(),
|
||||
RateLimiterMiddleware.rateLimit(rateLimiters.openDashboard),
|
||||
AsyncLocalStorage.middleware,
|
||||
await Modules.middleware('domainCaptureTestSession'),
|
||||
PermissionsController.useCapabilities(),
|
||||
ProjectListController.projectListPage
|
||||
)
|
||||
|
||||
@@ -113,6 +113,7 @@ export interface Meta {
|
||||
'ol-detachRole': 'detached' | 'detacher' | ''
|
||||
'ol-dictionariesRoot': 'string'
|
||||
'ol-domainCaptureEnabled': boolean | undefined
|
||||
'ol-domainCaptureTestURL': string | undefined
|
||||
'ol-dropbox': { error: boolean; registered: boolean }
|
||||
'ol-editorThemes': string[]
|
||||
'ol-email': string
|
||||
|
||||
Reference in New Issue
Block a user