You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Julian Lam 5f3d1c76c8
fix: #7038, autoLocale logic not playing nicely with no-refresh auths (#7059)
* fix: #7038, autoLocale logic not playing nicely with no-refresh auths

- on login, req.query.lang is deleted (since it seems to be left over)
- on logout, the middleware.autoLocale is executed, which resets
  req.query.lang
- middleware.autoLocale is new, just refactored existing logic in
  webserver.js into new middleware method.

* style: tests, use lodash

* fix: timeago strings not switching languages on login or out
7 years ago
..
accounts style 7 years ago
admin feat: #7023 7 years ago
404.js use includes instead of indexOf 7 years ago
accounts.js Add settings page to control watched categories (#6648) 7 years ago
admin.js closes #6854 7 years ago
api.js feat: close #7002, console message if mismatched origins 7 years ago
authentication.js fix: #7038, autoLocale logic not playing nicely with no-refresh auths (#7059) 7 years ago
categories.js Categories optimize (#6999) 7 years ago
category.js fix: #7040 7 years ago
composer.js add test for composer fix 8 years ago
errors.js Home route (#7039) 7 years ago
globalmods.js closes #6020 8 years ago
groups.js Parse int (#6853) 7 years ago
helpers.js fix: #7037 7 years ago
home.js Parse int (#6853) 7 years ago
index.js style(eslint): match operator-linebreak preferences 7 years ago
mods.js chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599) 7 years ago
osd.js Add Support for Firefox OSD 8 years ago
ping.js Home route (#7039) 7 years ago
popular.js closes #6612 7 years ago
posts.js handle 404 first 8 years ago
recent.js Recent refactor (#6879) 7 years ago
search.js add itemsPerPage to search api 7 years ago
sitemap.js closes #6972 7 years ago
tags.js Recent refactor (#6879) 7 years ago
top.js closes #6612 7 years ago
topics.js remove parseInts 7 years ago
unread.js add new hook `filter:unread.categories` 7 years ago
uploads.js add threshold for image resizing 7 years ago
user.js misc fixes 7 years ago
users.js Parse int (#6853) 7 years ago