mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-01-23 02:35:34 +00:00
chore: use express session upstream
This commit is contained in:
parent
9ee09ec8f2
commit
c180f55261
2 changed files with 4 additions and 4 deletions
|
|
@ -1,13 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
const DB = require('./DB');
|
||||
const Store = require('@etherpad/express-session').Store;
|
||||
import expressSession from 'express-session'
|
||||
|
||||
const log4js = require('log4js');
|
||||
const util = require('util');
|
||||
|
||||
const logger = log4js.getLogger('SessionStore');
|
||||
|
||||
class SessionStore extends Store {
|
||||
class SessionStore extends expressSession.Store {
|
||||
/**
|
||||
* @param {?number} [refresh] - How often (in milliseconds) `touch()` will update a session's
|
||||
* database record with the cookie's latest expiration time. If the difference between the
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@ import _ from 'underscore';
|
|||
import cookieParser from 'cookie-parser';
|
||||
import events from 'events';
|
||||
import express from 'express';
|
||||
// @ts-ignore
|
||||
import expressSession from '@etherpad/express-session';
|
||||
import expressSession from 'express-session';
|
||||
import fs from 'fs';
|
||||
const hooks = require('../../static/js/pluginfw/hooks');
|
||||
import log4js from 'log4js';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue