Skip to content

Commit

Permalink
Fix Issue #1107. Ajout d'un message spécifique, configurable, au mode…
Browse files Browse the repository at this point in the history
… OIDC (#1108)

Co-authored-by: Sébastien Bianco <seb.bianco@free.fr>
  • Loading branch information
sebastienbianco and Sébastien Bianco committed Jan 25, 2024
1 parent e0866b1 commit 454071d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Resources/views/default/index_anon.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@
<i class="material-icons left">lock_outline</i>Se connecter
</a>
</div>
{% if not oidc_enable %}
<div class="row center">
<p class=" col s12 light"> Pas encore d'identifiant ?
<a href="{{ path('find_me') }}" class="orange-text">Créer mon compte</a>
</p>
</div>
{% else %}
<div class="row center">
<p class=" col s12 light">
{{ oidc_no_account_message | raw }}.
</p>
</div>
{% endif %}
{% include "booking/_partial/list.html.twig" with { bucketsByDay: bucketsByDay, display_names: false } %}
{% endblock %}

Expand Down
1 change: 1 addition & 0 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ twig:
oidc_commissions_claim: "%oidc_commissions_claim%"
oidc_commissions_map: "%oidc_commissions_map%"
oidc_profile_custom_message: '%oidc_profile_custom_message%'
oidc_no_account_message: '%oidc_no_account_message%'
# Doctrine Configuration
doctrine:
dbal:
Expand Down
1 change: 1 addition & 0 deletions app/config/parameters.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ parameters:
# Open id client
oidc_enable: false
oidc_profile_custom_message : 'vos informations personnelles sont éditables <a href="http://localhost:8081/"> ici </a>'
oidc_no_account_message : 'Si vous n''avez pas de compte, merci d''envoyer un email à <a href="mailto:elefan@scopeli.fr?Subject=Cr%%C3%%A9ation%%20d%%20un%%20compte%%20Scop%%C3%%A9li">elefan@scopeli.fr </a>'
oidc_issuer: 'http://host.docker.internal:8081/auth'
oidc_realm: elefan
oidc_client_id: elefan
Expand Down

0 comments on commit 454071d

Please sign in to comment.