-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(FT OIDC): prevent overwriting duplicate emails
fix(PoleEmploiConnectUserData): raise EmailInUseException on duplicate emails France Travail allows users to overload the same email, and we allow only one feat(pe_connect_callback): catch EmailInUseException feat: render messages as modals fix: quality feat(france_travail_registration_failure.html): redirect to jobseeker registration fix: tests feat(users/tests): test_get_redacted_full_name fix: solution should work for other identity providers refactor(User.get_redacted_full_name): extend existing utility fix(pe_connect/views.py): security best practice fix: remove unused code fix: requested changes refactor: move modals messages to modals block
- Loading branch information
1 parent
68d6445
commit ec6500a
Showing
14 changed files
with
163 additions
and
23 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
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
23 changes: 23 additions & 0 deletions
23
itou/templates/utils/modal_includes/france_travail_registration_failure.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,23 @@ | ||
{% load static %} | ||
{% load theme_inclusion %} | ||
{% load django_bootstrap5 %} | ||
|
||
<div class="modal-dialog modal-dialog-centered"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h3 class="modal-title text-danger" id="message-modal-{{ forloop.counter }}-label"> | ||
<i class="ri-xl ri-alert-line"></i> | ||
L'inscription a échoué | ||
</h3> | ||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Fermer"></button> | ||
</div> | ||
<div class="row modal-body"> | ||
<h2 class="h4">L'inscription via France Travail a échoué</h2> | ||
<p>{{ message }}</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn" data-bs-dismiss="modal">Retour</button> | ||
<a href="{% url 'signup:job_seeker' %}" class="btn btn-primary">Inscription</a> | ||
</div> | ||
</div> | ||
</div> |
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,19 @@ | ||
{% load static %} | ||
{% load theme_inclusion %} | ||
{% load django_bootstrap5 %} | ||
|
||
{% for message in messages %} | ||
{% if "modal" in message.extra_tags %} | ||
<div class="modal fade" id="message-modal-{{ forloop.counter }}" data-bs-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="message-modal-{{ forloop.counter }}-label" aria-modal="true"> | ||
{% if "france_travail_registration_failure" in message.extra_tags %} | ||
{% include "utils/modal_includes/france_travail_registration_failure.html" %} | ||
{% endif %} | ||
</div> | ||
|
||
<script nonce="{{ CSP_NONCE }}"> | ||
window.onload = function() { | ||
new bootstrap.Modal(document.getElementById("message-modal-{{ forloop.counter }}")).show(); | ||
}; | ||
</script> | ||
{% endif %} | ||
{% endfor %} |
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
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