sebastien
0fb3d588b9
adds password expiry policy with a new method on User class
2024-12-19 11:20:26 +01:00
Éloi Rivard
fe8929d992
refactor: move templates in a common directory
...
without this, theming was broken because it needs one single directory
for templates.
2024-12-19 00:17:03 +01:00
Éloi Rivard
309511e91c
feat: generic blueprint HTTP 404 error handler
...
This allows blueprint to handle 404 errors. This is not supported
directly in Flask.
https://flask.palletsprojects.com/en/stable/errorhandling/#handling
However, the blueprint cannot handle 404 routing errors because the
404 occurs at the routing level before the blueprint can be determined.
2024-12-11 23:19:22 +01:00
Éloi Rivard
6d8799d052
refactor: use the Features class to know if a feature is available
...
instead of simply looking at the configuration
2024-12-05 12:20:30 +01:00
Éloi Rivard
eb955ad5dc
chore: make converters work with model ids
2024-12-02 17:45:28 +01:00
Éloi Rivard
fe8e1160ab
refactor: move session related methods in a dedicated file
2024-11-06 09:10:43 +01:00
Éloi Rivard
c28a1e9351
fix: display a 500 error when SMTP configuration is defined but null
...
this improves tests coverage
2024-09-15 17:58:03 +02:00
Éloi Rivard
44573713ed
refactor: move BackendModel.get to Backend.get
2024-05-03 21:54:03 +02:00
Éloi Rivard
dc89a20b11
chore: configure ruff
2024-04-23 22:12:04 +02:00
Éloi Rivard
7ad592c4de
fix: compatibility with old session IDs
2024-04-09 15:45:47 +02:00
Éloi Rivard
f3bcdafb23
fix: clean the session cookie after logout
2024-04-09 11:56:51 +02:00
Éloi Rivard
1fbb074cc5
refactor: user permissions lazy loading
2024-04-07 15:21:32 +02:00
Éloi Rivard
fbd0d3029e
refactor: rename User read/write/permissions attributes
2024-04-01 14:59:56 +02:00
Éloi Rivard
8625318341
feat: use pydantic to validate the configuration
2024-03-28 17:44:26 +01:00
Éloi Rivard
4edffcaa9f
chore: use isort instead of reoder-python-imports
2024-03-15 19:58:37 +01:00
Éloi Rivard
395b6ab4f3
chore: add docformatter pre-commit
2023-12-28 18:31:57 +01:00
Éloi Rivard
a2e3fce204
feat: flask-babel and pytz are now part of the front extras
2023-09-01 10:46:56 +02:00
Éloi Rivard
8b98726348
refactor: User.login and User.logout methods moved to app.flask module
2023-08-23 14:56:56 +02:00
Éloi Rivard
96ccf12ad9
feat: split installation in different extras packages
2023-08-17 14:34:30 +02:00
Éloi Rivard
191791ac72
fix: import render_template from flask_themer instead of flask
2023-08-14 15:45:25 +02:00
Éloi Rivard
c895366684
refactor: store user profile in g.user
2023-08-13 22:08:28 +02:00
Éloi Rivard
52482ca19c
Implements flask OIDC converters
2023-06-29 15:55:39 +02:00
Éloi Rivard
f504bb3a66
Implements a flask User converter
2023-06-29 15:55:39 +02:00
Éloi Rivard
bb95978376
Boosts webpages with HTMX
...
Fixes #144
Fixes #145
2023-06-26 17:17:07 +02:00
Éloi Rivard
caf434a1fc
debug template variable is available everywhere
2023-06-20 14:22:19 +02:00
Éloi Rivard
17c2f7a5cd
Implemented LDAP ppolicy support.
2023-05-26 15:23:43 +02:00
Éloi Rivard
c1d1706007
Moved every model import to canaille.models
2023-05-20 20:02:00 +02:00
Éloi Rivard
79f12b1d0a
'app' submodule
2023-04-09 15:52:55 +02:00