-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #497 from MTES-MCT/user_accounts
Gestion des comptes GUH
- Loading branch information
Showing
61 changed files
with
1,254 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,7 +98,7 @@ | |
# ------------------------------------------------------------------------------ | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#authentication-backends | ||
AUTHENTICATION_BACKENDS = [ | ||
"django.contrib.auth.backends.ModelBackend", | ||
"envergo.users.backends.AuthBackend", | ||
] | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#auth-user-model | ||
AUTH_USER_MODEL = "users.User" | ||
|
@@ -430,3 +430,8 @@ | |
"BREVO_NEWSLETTER_DOUBLE_OPT_IN_TEMPLATE_ID", default=None | ||
), | ||
} | ||
|
||
SITE_FROM_EMAIL = { | ||
"amenagement": "[email protected]", | ||
"haie": "[email protected]", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,6 +110,16 @@ | |
DEFAULT_FROM_EMAIL = env( | ||
"DJANGO_DEFAULT_FROM_EMAIL", default="EnvErgo <[email protected]>" | ||
) | ||
SITE_FROM_EMAIL = { | ||
"amenagement": env( | ||
"DJANGO_AMENAGEMENT_FROM_EMAIL", | ||
default="EnvErgo <[email protected]>", | ||
), | ||
"haie": env( | ||
"DJANGO_HAIE_FROM_EMAIL", | ||
default="Guichet unique de la haie <[email protected]>", | ||
), | ||
} | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#server-email | ||
SERVER_EMAIL = env("DJANGO_SERVER_EMAIL", default=DEFAULT_FROM_EMAIL) | ||
# https://docs.djangoproject.com/en/dev/ref/settings/#email-subject-prefix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<p> | ||
À très bientôt, | ||
<br /> | ||
L'équipe EnvErgo | ||
<br /> | ||
07 56 81 02 11 | ||
<br /> | ||
<a href="https://envergo.beta.gouv.fr">https://envergo.beta.gouv.fr</a> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
À très bientôt, | ||
L'équipe EnvErgo | ||
07 56 81 02 11 | ||
https://envergo.beta.gouv.fr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
envergo/templates/amenagement/registration/activate_account.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block title %}Votre identité est confirmée{% endblock %} | ||
|
||
{% block article %} | ||
<h1>Votre identité est confirmée</h1> | ||
|
||
<p class="lead">Votre compte est désormais actif.</p> | ||
|
||
<p> | ||
<a href="{% url 'login' %}">Vous pouvez vous connecter.</a> | ||
</p> | ||
|
||
{% endblock %} |
File renamed without changes.
Oops, something went wrong.