Commit graph

2241 commits

Author SHA1 Message Date
Éloi Rivard
19159c5a80
refactor: use @example.com for email placeholders 2024-11-20 23:42:58 +01:00
Éloi Rivard
77667c6f52
refactor: all domains used in the unit test suite are now .test
this ensures they will never be valid, and will never generate real
world requests
2024-11-20 23:30:48 +01:00
Éloi Rivard
0af36824cb
tests: fix assertions on the compromission password tests 2024-11-20 14:32:25 +01:00
Éloi Rivard
6fa86cb5b2
refactor: PEP20 flat is better than nested 2024-11-20 14:27:18 +01:00
Éloi Rivard
b0e38b6f71
refactor: PEP20 flat is better than nested 2024-11-20 14:26:05 +01:00
Éloi Rivard
cd398ffa0a
chore: use the .example domain in placeholders 2024-11-20 14:19:25 +01:00
Éloi Rivard
a29751bb5e
doc: use the .example TLD in the documentation 2024-11-20 14:18:48 +01:00
Éloi Rivard
2d78e62a03
fix: typo in the documentation 2024-11-20 14:18:09 +01:00
Éloi Rivard
9746a9af3c
doc: CLI configuration instructions details 2024-11-20 14:10:35 +01:00
Éloi Rivard
a1f298cf70 Merge branch 'doc-add-env-prefix' into 'main'
doc: add info how to run canaille CLI

See merge request yaal/canaille!189
2024-11-20 13:03:10 +00:00
Hosted Weblate
edbebdc209
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-11-20 14:01:42 +01:00
Éloi Rivard
58f7c29c9a Merge branch '179-check-passwords-on-compromised-password-databases' into 'main'
adds password compromise check

Closes #179

See merge request yaal/canaille!188
2024-11-20 13:01:31 +00:00
sebastien
0fc5afb0bd changes flash message category to info because, informing the admin is not a success but an information for the user 2024-11-19 16:11:23 +01:00
sebastien
3725ab2ea5 updates config.sample.toml correct display style 2024-11-19 15:54:52 +01:00
sebastien
e16d7394a9 updates pybabel translation 2024-11-19 15:44:02 +01:00
sebastien
033fd423e5 Merge branch '179-check-passwords-on-compromised-password-databases' of gitlab.com:yaal/canaille into 179-check-passwords-on-compromised-password-databases 2024-11-19 15:43:08 +01:00
sebastien
bcacef8414 updates pybabel translation 2024-11-19 15:40:52 +01:00
sebastien yaal
734f2a85ac Merge branch 'main' into '179-check-passwords-on-compromised-password-databases'
# Conflicts:
#   canaille/translations/messages.pot
2024-11-19 14:38:12 +00:00
sebastien
e700b85648 updates features and CHANGES 2024-11-19 15:17:09 +01:00
sebastien
010bb4ea06 updates tests without API call 2024-11-19 14:49:36 +01:00
sebastien
aaa17c2545 hotfix update previous commit 2024-11-19 14:48:56 +01:00
sebastien
bfff1bcdc1 refacto form test: separating htmx request and form submit 2024-11-19 14:46:38 +01:00
sebastien
d9f01fef6e hotfix 2024-11-19 13:56:07 +01:00
sebastien
b49f1df395 Adds configuration variable for hibp api url 2024-11-19 11:20:25 +01:00
sebastien
ce8dba03fe remove admin_group from conftest because, we use a mock to avoid api cal in tests. So we don't need an admin group anymore. 2024-11-19 09:13:31 +01:00
sebastien
d18b555204 adds new log when HIBP API call fails 2024-11-19 09:11:02 +01:00
Éloi Rivard
6993c87069
chore: dependencies update 2024-11-17 15:16:25 +01:00
gallegonovato
b7f4d93159
Translated using Weblate (Spanish)
Currently translated at 100.0% (381 of 381 strings)

Translation: Canaille/Canaille
Translate-URL: https://hosted.weblate.org/projects/canaille/canaille/es/
2024-11-16 14:00:35 +01:00
sebastien
4487f66e9a updates pybabel translations 2024-11-15 16:28:52 +01:00
sebastien
9b8f8e9cd4 updates configuration and config.sample and demo config files toinclude new parameters. adds new tests for configuration condition. 2024-11-15 16:28:21 +01:00
Hosted Weblate
e0a390bf0a
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-11-15 12:51:26 +01:00
sebastien
d10497d3d2 updates pybabel translation 2024-11-15 12:34:42 +01:00
sebastien
a7a93a7d1c adds comment to explain API response content in test 2024-11-15 12:22:10 +01:00
sebastien
dc2824da2b adds tests for admin mails display 2024-11-15 12:21:28 +01:00
Stéphane
a832c10c80 doc: add info how to run canaille CLI 2024-11-14 17:24:04 +01:00
sebastien
d6dfd439f3 adds tests for ENABLE_PASSWORD_COMPROMISSION_CHECK config 2024-11-14 16:10:43 +01:00
sebastien
ec43d9157f avoids api call from tests 2024-11-14 15:32:31 +01:00
sebastien
2787252d81 the only receiver of mail when the request on HIBP api have failed is current_app.config[CANAILLE][ADMIN_EMAIL] defined in config. 2024-11-13 16:24:35 +01:00
sebastien
738ea3a5ac adds description on ENABLE_PASSWORD_COMPROMISSION_CHECK config setting 2024-11-13 16:22:50 +01:00
sebastien
4c146cc970 changes flash message when the password is compromised. 2024-11-13 16:21:52 +01:00
sebastien
ae9c1309b9 adds pre-visualization mail buttons when api request on HIBP have failed in canaille/core/templates/mails/admin.html 2024-11-13 16:20:30 +01:00
sebastien
2a57a05155 adds configuration option set by default False to check password compromise 2024-11-13 16:12:50 +01:00
sebastien
faa5c6f966 Merge branch '179-check-passwords-on-compromised-password-databases' of gitlab.com:yaal/canaille into 179-check-passwords-on-compromised-password-databases 2024-11-13 11:37:06 +01:00
Éloi Rivard
08e0dd47bd
fix: disable the mail sending test when no SMTP server is configured 2024-11-13 10:58:11 +01:00
Éloi Rivard
8f3ea59a70
fix: do not install '--all-extras' by default in the demo env
since it may require to compile dependencies for the mariadb backend for
instance.
2024-11-13 10:18:07 +01:00
Éloi Rivard
c0b6fa358c
doc: release instructions 2024-11-13 10:04:58 +01:00
Éloi Rivard
9d2fbfdcbf
doc: instructions on how to initialize the dev environment 2024-11-13 09:59:00 +01:00
sebastien
10739805d5 adds 'requests' in pyproject.toml file 2024-11-12 17:01:18 +01:00
sebastien
1522f05348 updates pybabel translation 2024-11-12 16:53:11 +01:00
sebastien
f67477f5e1 adds tests for ADMIN_EMAIL config variable 2024-11-12 16:50:51 +01:00