Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9749574
D7424.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
878 B
Subscribers
None
D7424.diff
View Options
diff --git a/swh/web/templates/add_forge_now/create-request.html b/swh/web/templates/add_forge_now/create-request.html
--- a/swh/web/templates/add_forge_now/create-request.html
+++ b/swh/web/templates/add_forge_now/create-request.html
@@ -54,7 +54,13 @@
<h3>
<p class="text-primary">
You must be logged in to submit an add forge request. Please
- <a id="loginLink" href="{% url 'login' %}?next={% url 'forge-add' %}" class="link-primary">log in</a>
+ <a id="loginLink" class="link-primary"
+ {% if oidc_enabled and 'remote_user' in request.GET %}
+ href="{% url 'oidc-login' %}?next={% url 'forge-add' %}"
+ {% else %}
+ href="{% url 'login' %}?next={% url 'forge-add' %}"
+ {% endif %}
+ >log in</a>
</p>
</h3>
{% else %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 24, 5:58 PM (3 d, 22 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217646
Attached To
D7424: add-forge-now: Fix login link depending on the oidc context
Event Timeline
Log In to Comment