nodebb/test
Julian Lam d6e3f3f058
fix: , broken site if no server-side session ()
* fix: , broken site if no server-side session

During the `addHeader` middleware, a check is now done to see if
`req.session.meta` is present. This value is only present if the user
has a valid server-side session.  If it is missing, then it is probably
safe to assume that the server-side session was deleted (either
intentionally or accidentally). In that scenario, the client-side cookie
should be cleared.

Also, there was an issue where the sessionRefresh flag was never cleared
after a successful login, so that was fixed too.

* feat: exported method to get cookie config

* fix: don't clear cookie if cookie is being set

* fix: socket.io tests

Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
..
database properly filter /unread /recent /popular /top ()
files Replace jimp with sharp ()
helpers fix: , broken site if no server-side session ()
mocks fix: , upgrade mkdirp to 1.0.x
.eslintrc ESlint no-unused-vars
authentication.js Async refactor in place ()
batch.js Async refactor in place ()
blacklist.js fix(deps): update to eslint@6
build.js fix: , upgrade mkdirp to 1.0.x
categories.js Add privilege for accessing user information ()
controllers-admin.js fix: dont return flag data to client
controllers.js fix: tests
coverPhoto.js fix:
database.js fix: db info page
defer-logger.js upgrade to winston 3.1, closes ()
emailer.js fixed tests, closes
feeds.js use includes instead of indexOf
file.js refactor: async/await file
flags.js fix: dont return flag data to client
groups.js fix: group create/join/update name validation
image.js up deps
locale-detect.js fix: , autoLocale logic not playing nicely with no-refresh auths ()
messaging.js fix: , check if user is in room before removing
meta.js parse '123' to 123 if it has no default
mocha.opts set cluster to false again
notifications.js fix: tests
pagination.js ESlint object-curly-spacing
plugins.js fix: , bubble errors from static hooks
posts.js feat: add test for change post owner
pubsub.js test pubsub cache
rewards.js fix: change params
search-admin.js style(eslint): match operator-linebreak preferences
search.js add searchonly option to searh api
settings.js more settings tests
socket.io.js fix: event tests
template-helpers.js fix: test
topics.js fix: , dont allow restore if not deleted by self
translator.js fix: ()
uploads.js fix: delete upload
user.js feat: add test for isOnline
utils.js fix: convert param to string in slugify