Commit graph

1917 commits

Author SHA1 Message Date
Éloi Rivard
6601abaeb4
refactor: memory model clears its cache when reading a model 2024-04-17 10:51:53 +02:00
Éloi Rivard
0ba1c93152
chore: add typing to Model._attributes 2024-04-17 09:03:54 +02:00
Éloi Rivard
d811c3473d
refactor: use one single Faker object to generate users 2024-04-16 21:43:34 +02:00
Éloi Rivard
fa6949e5c6
tests: speed up tests
by avoiding to create more faker.Faker objects than necessary
2024-04-16 21:25:20 +02:00
Éloi Rivard
2cfa685eb4
chore: dependencies update 2024-04-16 18:43:17 +02:00
Éloi Rivard
295a68ebe1
chore: bump to pytest 8 2024-04-16 18:34:36 +02:00
Éloi Rivard
ce890ca0ad
tests: use pytest-lazy-fixtureS instead of pytest-lazy-fixture 2024-04-16 18:33:58 +02:00
Éloi Rivard
1080952a75
tests: speed up unit tests by caching the jinja bytecode between tests 2024-04-16 12:46:53 +02:00
Éloi Rivard
1decf162b4
chore: automatically reload flask when the custom templates have changed
in debug mode
2024-04-15 15:34:50 +02:00
Éloi Rivard
025d518dae
chore: pass .env variables to honcho 2024-04-15 13:45:39 +02:00
Éloi Rivard
8ab4c05b82
chore: pre-commit GHA actions needs a full version 2024-04-14 19:49:46 +02:00
Éloi Rivard
7689e269a7
chore: update GHA actions 2024-04-14 19:44:01 +02:00
Éloi Rivard
f9989a960b
feat: locked users cannot be impersonated 2024-04-12 12:12:08 +02:00
Éloi Rivard
565d57a887
tests: split test_account.py 2024-04-12 11:23:51 +02:00
Éloi Rivard
d9d5c85b51
refactor: memory backend clears its cache on save() calls 2024-04-12 10:55:24 +02:00
Éloi Rivard
6e26656cc4
tests: move test_model_references_set_unsaved_object to the ldap tests directory 2024-04-12 10:49:56 +02:00
Éloi Rivard
d8b5c837d7
Translated using Weblate (French)
Currently translated at 100.0% (368 of 368 strings)

Translation: Canaille/Canaille
Translate-URL: https://hosted.weblate.org/projects/canaille/canaille/fr/
2024-04-10 11:01:48 +02:00
gallegonovato
c2f6a1d176
Translated using Weblate (Spanish)
Currently translated at 100.0% (368 of 368 strings)

Translation: Canaille/Canaille
Translate-URL: https://hosted.weblate.org/projects/canaille/canaille/es/
2024-04-10 11:01:47 +02:00
Éloi Rivard
490cb34278
chore: bump to 0.0.51 2024-04-09 22:06:36 +02:00
Éloi Rivard
42dc023288
fix: display the menu bar on error pages 2024-04-09 22:06:08 +02:00
Éloi Rivard
0756859626
chore: bump to 0.0.50 2024-04-09 21:51:19 +02:00
Éloi Rivard
68d3dd1d58
chore: update dependencies 2024-04-09 21:50:38 +02:00
Éloi Rivard
7ad592c4de
fix: compatibility with old session IDs 2024-04-09 15:45:47 +02:00
Éloi Rivard
4037c296cf
fix: JAVASCRIPT and HTMX configuration settings were ignored 2024-04-09 12:07:00 +02:00
Éloi Rivard
f3bcdafb23
fix: clean the session cookie after logout 2024-04-09 11:56:51 +02:00
Hosted Weblate
7244f900a5
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Canaille/Canaille
Translate-URL: https://hosted.weblate.org/projects/canaille/canaille/
2024-04-09 10:04:43 +02:00
Éloi Rivard
920395c27f
feat: sign in/out events are logged in #177 2024-04-09 10:04:26 +02:00
Éloi Rivard
053156ec18
feat: additional messages on password endpoint errors
when attempt_login is not found on the session, add a warning to be
displayed on the login page after redirection
2024-04-09 09:20:38 +02:00
Éloi Rivard
4bf83888e8
chore: bump to 0.0.49 2024-04-08 18:25:08 +02:00
Hosted Weblate
18f1229f85
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Canaille/Canaille
Translate-URL: https://hosted.weblate.org/projects/canaille/canaille/
2024-04-08 14:56:52 +02:00
Éloi Rivard
3e5161e72b
Translated using Weblate (French)
Currently translated at 100.0% (366 of 366 strings)

Translation: Canaille/Canaille
Translate-URL: https://hosted.weblate.org/projects/canaille/canaille/fr/
2024-04-08 14:56:52 +02:00
Éloi Rivard
5aaccca4cf
fix: display an error message when trying to remove the last user from a group 2024-04-08 14:44:15 +02:00
Éloi Rivard
fe2665ae32
fix: LDAP user group removal 2024-04-08 14:15:28 +02:00
Éloi Rivard
88f6b935e8
chore: bump to 0.0.48 2024-04-08 11:01:02 +02:00
Éloi Rivard
cbde5ba7b7
fix: LDAP objectClass guessing exception 2024-04-08 11:00:36 +02:00
Éloi Rivard
c92ee431eb
chore: bump to 0.0.47 2024-04-08 10:52:02 +02:00
Éloi Rivard
8c16a9dd6d
fix: Lazy permission loading exception 2024-04-08 10:50:37 +02:00
Éloi Rivard
cbc2f60640
chore: bump to 0.0.46 2024-04-08 10:37:17 +02:00
Éloi Rivard
32ad543a6b
chore: pre-commit autoupdate 2024-04-08 10:33:43 +02:00
Éloi Rivard
eae9c0613b
chore: update dependencies 2024-04-08 10:33:03 +02:00
Éloi Rivard
4bc5772e03 Merge branch 'old-object-classes' into 'main'
fix: saving an object with the LDAP backend keeps the objectClass un-managed by Canaille

See merge request yaal/canaille!171
2024-04-08 08:32:11 +00:00
Éloi Rivard
fbbcd2fe78
fix: saving an object with the LDAP backend keeps the objectClass un-managed by Canaille 2024-04-08 10:29:47 +02:00
Éloi Rivard
fecfcfa8f3
refactor: factorize Model.__html__ 2024-04-07 20:23:43 +02:00
Éloi Rivard
702eec7aca
fix: MemoryModel.model_attribute type hint 2024-04-07 20:21:30 +02:00
Éloi Rivard
88832b5b3b
refactor: move User.check_password and User.set_password methods to Backend 2024-04-07 20:17:15 +02:00
Éloi Rivard
5a6ce24074
refactor: move User.get_from_login method to Backend 2024-04-07 20:17:15 +02:00
Hosted Weblate
2082e19480
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: Canaille/Canaille
Translate-URL: https://hosted.weblate.org/projects/canaille/canaille/
2024-04-07 19:50:35 +02:00
Éloi Rivard
e9c4f4c1c9
refactor: differenciate between login and username in forms 2024-04-07 19:50:26 +02:00
Éloi Rivard
6251455a1d
perf: cache the class attributes 2024-04-07 19:22:54 +02:00
Éloi Rivard
2cab4bfa66
refactor: use User.get instead of User.get_from_login when this is pertinent 2024-04-07 18:46:08 +02:00