Commit Graph

3 Commits (1a7036a68b2be62421c43eb41443f7c782fe51f4)

Author SHA1 Message Date
Julian Lam 5f3d1c76c8
fix: , autoLocale logic not playing nicely with no-refresh auths ()
* fix: , 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
Barış Soner Uşaklı 7ac031775a locale test change
Peter Jaszkowiak 6432c02ab8 Add tests