8
0
Fork 0
mirror of https://gitlab.federez.net/re2o/re2o synced 2024-06-18 08:38:09 +00:00
Commit graph

768 commits

Author SHA1 Message Date
Jean-Romain Garnier 6088f5c91b Fix CGU line formatting 2021-01-24 16:33:32 +01:00
Jean-Romain Garnier a1d35a2c9b Add missing translations 2021-01-24 16:33:32 +01:00
Jean-Romain Garnier 5eb89e85ba Improve comments for User clean methods 2021-01-24 16:33:32 +01:00
Gabriel Detraz dc67ed5298 Check email in user clean (factorise code) 2021-01-24 16:33:32 +01:00
Jean-Romain Garnier 6235909a9a Fix some email checks being bypassed for legacy users 2021-01-24 16:33:32 +01:00
Jean-Romain Garnier 1755f6e624 Prevent user email from being null 2021-01-24 16:33:32 +01:00
Jean-Romain Garnier 4a7c5c1bdb Make email check more pythonic 2021-01-24 16:33:32 +01:00
Jean-Romain Garnier 259e9eff51 Leave user email blank / null for compatilibity 2021-01-24 16:33:32 +01:00
Jean-Romain Garnier 8befbb8ad8 Handle empty emails 2021-01-24 16:33:32 +01:00
Jean-Romain Garnier 77a1b39dbf Add required for email field when necessary 2021-01-24 16:33:32 +01:00
Jean-Romain Garnier b968f23b65 Leave user email blank / null for compatilibity 2021-01-24 16:33:32 +01:00
Jean-Romain Garnier 9e1cd17a1b Handle empty emails 2021-01-24 16:33:32 +01:00
Hugo Levy-Falk c2b5a26d8f Fix dead code. 2021-01-24 16:33:31 +01:00
Hugo Levy-Falk 8730c2ecfe Production version of VueJS 2021-01-24 16:33:31 +01:00
Hugo Levy-Falk a370ae066e Fix #98 2021-01-24 16:33:31 +01:00
chapeau cf7e293a1c Fix of copy/paste errors 2021-01-24 16:33:31 +01:00
chapeau 0b58365c87 First draft of moving api functions into each apps 2021-01-24 16:33:31 +01:00
Gabriel Detraz 334537e475 Remove old api 2021-01-24 16:33:31 +01:00
Gabriel Detraz 0d7ca44edd Add help_text for password 2021-01-24 16:33:31 +01:00
Gabriel Detraz 2cf3c3ce19 Validate password using django settings password validator 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier fa95625205 Add translation for email error message 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 00c15b4bb9 Move mail util function to seperate file 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 91504e9688 Fix circular import of utils 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier cb9ae34418 Make emails throw timeout errors, and gracefully handle them 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 449e1f8721 Add translations for advanced search email filter 2021-01-24 16:33:31 +01:00
Gabriel Detraz 4490f75dd4 Simplify preferences, add all_room acl for users 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier bf6f3fdec2 Make call to remove_user_room cleaner 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier c14f172764 Forbid user from forcing out another user with a free access 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier e417de379e Add option enabling regular users to take a disabled user's room 2021-01-24 16:33:31 +01:00
Gabriel Detraz 2f7c77fd9f Fix #247 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 51c81886b5 Add translations for statistics 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 283f272931 Add missing migration 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 85836fa770 Cleanup old Request objects in process_passwd and process_email 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 2ed3b2ac31 Fix translations 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 179b8cfd26 Make email translations more consistent 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 5b4dfea878 Remove duplicate translation 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 6c7833ebb1 Add missing translations 2021-01-24 16:33:31 +01:00
Gabriel Detraz d2881c64dc Don't forget to save 2021-01-24 16:33:31 +01:00
Gabriel Detraz fb5c215f47 Allow admin to modify email state 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier cdd9dfae6c Provide default value for email_change_date and don't allow it to be null 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 154096050c Make send_confirm_email_if_necessary clearer 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 5fdb8a7b1e Fix wrong state check in send_confirm_email_if_necessary 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 1c65dc50ff Don't set User.email_change_date to None 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier def91bff7a Call user.confirm_mail in UserManager._create_user 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier a7b989b7de Fix error in profil of users with an unverified email 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 216d14bb25 Ensure confirmation email tokens are deleted if no longer valid 2021-01-24 16:33:31 +01:00
Gabriel Detraz b88fea3b4b Test sur le mot primaire au lieu du mot de pass radius 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier aad7110fd2 Improve check did_set_initial_passwd in new_user 2021-01-24 16:33:31 +01:00
Gabriel Detraz c00bb2573b Remove code mort 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 9f1c6a57e2 Correctly send a confirmation email 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 8e8d035439 Save before checking if confirmation email should be sent 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 1a997f81ee Add missing __original_email init 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier db620e9c90 Always send confirmation email, except for fully-archived users 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 8b75900103 Make AdherentCreationForm code clearer 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 9fe4313540 Move some code away from the forms 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier b43bbf9d98 Confirm email after resetting password 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 8b4e203783 Reset clean_notyetactive command to its correct state 2021-01-24 16:33:31 +01:00
Gabriel Detraz 6d0c53d667 Remove state_sync : est appellé en post-save de user 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier ac7ea6cd23 Move should_send_confirmation_email in EmailSettingsForm for consistency 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier cdc25ad5ec Send confirmation email if necessary after editing EmailSettingsForm 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier fcd2f9d16d Also update email state in EmailSettingsForm 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 8e543a04b1 Fix marking email as verified 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier d8cfb2e3d5 Set email_change_date on user creation 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 73b11a3e93 Make check of pending email confirmation cleaner in profile.html 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier ba7fe6e035 Automatically validate superuer's email address 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 2a068a7e0a Fix error preventing migration 2021-01-24 16:33:31 +01:00
Gabriel Detraz 19b463bc1e Allow revert migrations 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 377f584628 Delete old migration 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 4803417bca Replace STATE_EMAIL_NOT_YET_CONFIRMED with an email_state 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 81b6b999be Revert "Create STATE_SUSPENDED"
This reverts commit 2aef2ae3fa.
2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 47772f1464 Revert "Allow suspended users to login"
This reverts commit 91c51c50df.
2021-01-24 16:33:31 +01:00
Jean-Romain Garnier bcb22f1382 Allow suspended users to login 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 0dcd8b79e2 Create STATE_SUSPENDED 2021-01-24 16:33:31 +01:00
Gabriel Detraz ffdb32df90 Update headers 2021-01-24 16:33:31 +01:00
chirac 3cc2a768dc Update resend_confirmation_email.html 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 811e527232 Allow users in the STATE_EMAIL_NOT_YET_CONFIRMED to reset their password 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 14fe70c762 Add missing translations 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 263d5cfb4c Use get_full_name to generate confirm_email.html 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier c71c41fea8 Notify users of suspension when they failed to confirm their email 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 0a8ed0bb40 Fix disable_emailnotyetconfirmed task 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 0c1cf9ac94 Improve various templates related to email confirmation 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier e0609d27dd Fix wrong email showing up when editing user 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 65a91c1110 Show warning with delay before account suspension for users 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 02040bfae9 Delete disabled users who never created an invoice 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier e574284936 Require login on confirmation email resend 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 32c1f8d50a Require user_edit permission to resend confirmation email 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 2793e207c0 Always sync email_change_date on manual state change 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 80124695ad Move user email_change_date update on manual state change to seperate method 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier e0de606221 Fix overlapping conditions in User.state_sync 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier b7021f32cb Automatically consider email valid when user is set to STATE_ACTIVE 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier d4f13f8832 Handle manually switching user state to/from STATE_EMAIL_NOT_YET_CONFIRMED 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier bf69f71b9e Fix string formatting error during email confirmation 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 1124801b7d Fix confirm email template 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 7b4ec26d94 Replace ConfirmMailForm with an html template 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 3bee334062 Improve template of email confirmation view 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier e5b8cc48fa Fix user referenced before assignment 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier c4acc0f6f2 Fix template shown when confirming send an email 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier b190549618 Improve template for resending a confirmation email 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier 0ac4d81177 Add missing migrations 2021-01-24 16:33:31 +01:00
Jean-Romain Garnier ac318ba20f Fix handling of confirmation email for front facing elements 2021-01-24 16:33:31 +01:00