Change consent screen for multiple authenticators
diff --git www-api-web/indieauth/src/main/resources/templates/consent.html www-api-web/indieauth/src/main/resources/templates/consent.html
index 52fa7411..83fa2522 100644
--- www-api-web/indieauth/src/main/resources/templates/consent.html
+++ www-api-web/indieauth/src/main/resources/templates/consent.html
@@ -15,7 +15,7 @@
<p th:if="${request.PKCE == null}" class="p-3 mb-2 bg-warning text-dark">⚠️ The client is not using Proof of Key Code Exchange (PKCE) which is recommended by the IndieAuth specifciation, as it's more secure. It may be worth reaching out to the developer to request they add support. ⚠️</p>
- <form action="/authorize" method="post" th:each="authenticator: ${authenticators}">
+ <form action="/authorize" method="post">
<ul th:each="scope: ${request.scopes}">
<li style="list-style-type: none">
<label>
@@ -34,10 +34,10 @@
</label>
</div>
- <div class="form-group">
- <input type="submit" th:value="${authenticator.name}" class="btn btn-success"/>
+ <div class="form-group" th:each="authenticator: ${authenticators}">
+ <input type="submit" name="authenticator_id" th:value="${authenticator.id}" th:text="${authenticator.name}" class="btn btn-success"/>
+ <input type="hidden" th:value="${authenticator.id}"/>
</div>
- <input type="hidden" name="authenticator_id" th:value="${authenticator.id}"/>
<input class="me" type="hidden" name="me" th:value="${request.me}"/>
<input type="hidden" name="request_uri" th:value="${request_uri}"/>
</form>
But needs to have it work, as it uses name
for the submit box's text
Edited by Jamie Tanna