mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-13 08:07:03 +02:00
Add migration and documentation
This commit is contained in:
parent
6ad2546a40
commit
cbf1a24b4e
3 changed files with 47 additions and 1 deletions
|
@ -405,3 +405,11 @@ This function is triggered by the post_save event on the User model, designed to
|
|||
1. For New Users: Upon the creation of a new user, it checks for an existing `Contact` by email. If no matching contact is found, it creates a new Contact using the user's details from Login.gov. If a matching contact is found, it associates this contact with the user. In cases where multiple contacts with the same email exist, it logs a warning and associates the first contact found.
|
||||
|
||||
2. For Existing Users: For users logging in subsequent times, the function ensures that any updates from Login.gov are applied to the associated User record. However, it does not alter any existing Contact records.
|
||||
|
||||
## Disable email sending (toggling the disable_email_sending switch)
|
||||
Feature switches are booleans that behave like environment variables that you can toggle through the DB.
|
||||
This switch globally disables our email sending feature. Using it is as simple as checking a box.
|
||||
1. On the app, navigate to `\admin`.
|
||||
2. Under models, click `Waffle switches`.
|
||||
3. Click the `disable_email_sending` record. This should exist by default, if not - create one with that name.
|
||||
4. (Important) Enable the checkbox for the field `Active`. This field overrides all other settings
|
Loading…
Add table
Add a link
Reference in a new issue