Skip to content

Commit

Permalink
fixup! add autologin_proconnect simple tag
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Jan 15, 2025
1 parent 587a31a commit fe2eaa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lacommunaute/utils/templatetags/url_query_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ def url_add_query(url, **kwargs):
@register.simple_tag
def autologin_proconnect(url, user):
if user.is_authenticated and user.is_proconnect():
return url_add_query(url, proconnect="true", username=user.username)
return url_add_query(url, proconnect_login="true", username=user.username)
return url
2 changes: 1 addition & 1 deletion lacommunaute/utils/tests/tests_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def test_youtube_embed(self, text, expected):
(lambda: UserFactory(identity_provider=IdentityProvider.INCLUSION_CONNECT), ""),
(
lambda: UserFactory(username="abcd1234", identity_provider=IdentityProvider.PRO_CONNECT),
"?proconnect=true&username=abcd1234",
"?proconnect_login=true&username=abcd1234",
),
],
)
Expand Down

0 comments on commit fe2eaa2

Please sign in to comment.