Commit graph

13 commits

Author SHA1 Message Date
e78a667ee3 Move the session into requests.session for universal access. 2023-02-01 22:04:44 -08:00
11706cc1c7 Add admin button to clear all login sessions. 2022-11-07 17:51:02 -08:00
a514ed5ff3
Use voussoirkit timetools. 2022-11-06 22:59:11 -08:00
4001f6f371
Use datetime objects instead of timestamps in object model.
Trying to make better use of objects in this object oriented language.
2022-07-20 19:03:26 -07:00
1554b86c11
Use flasktools.ensure_response_type. 2021-06-04 21:28:23 -07:00
53e8030186
Move REQUEST_TYPES, RESPONSE_TYPES to voussoirkit.flasktools. 2021-06-04 21:00:22 -07:00
11b846a3e0 Move random_hex function to voussoirkit/passwordy. 2021-01-05 12:38:04 -08:00
adb1d0ef39 Replace all double blank lines with single, improve hash headers.
There was always some semblance that two blank lines has some kind of
meaning or structure that's different from single blank lines, but
in reality it was mostly arbitrary and I can't stand to look at it
any more.
2020-09-19 03:13:23 -07:00
cb881ed640 Add httponly to session cookie. 2020-09-09 19:19:35 -07:00
2ba4a3bb91 Add constant RESPONSE_TYPES for use in isinstance checks. 2020-09-09 18:53:51 -07:00
049d620789 Convert cookies to werkzeug MultiDict instead of plain dict.
I discovered that werkzeug stores cookies in lists, with its .get
returning only the first item of the list. By converting the cookies
to a plain dict, I was breaking that functionality of cookies.get.
So, using werkzeug's MultiDict is the correct choice.
2020-09-09 18:53:26 -07:00
9d620b4b97 Remove unused imports & other small things. 2020-02-20 22:44:56 -08:00
6e312bd287 Rename the etiquette_flask backend package to backend.
Alright, I got tired of confusing myself with the same-named
outer and inner package.
Keep in mind that every frontend implementation is supposed to be
its own independent project where etiquette is nothing but a
dependency. So the name backend is not ambiguous with the etiquette
backend.
2018-11-04 19:45:23 -08:00
Renamed from frontends/etiquette_flask/etiquette_flask/sessions.py (Browse further)