Possible wording improvements for reauth screen

This commit is contained in:
Hugh Nimmo-Smith
2022-05-04 08:50:48 -04:00
committed by Quentin Gliech
parent a56fd5dd45
commit ee83ae8e1b

View File

@@ -31,15 +31,13 @@ limitations under the License.
<section class="flex items-center justify-center flex-1">
<form method="POST" class="grid grid-cols-1 gap-6 w-96 m-4">
<div class="text-center">
<h1 class="text-lg text-center font-medium">Confim access</h1>
{% if next and next.kind == "continue_authorization_grant" %}
<p>to continue to <em>{{ next.grant.client.client_name | default(value=next.grand.client.client_id) }}</em></p>
{% endif %}
<h1 class="text-lg text-center font-medium">Hi {{ current_session.user.username }}</h1>
<p>To continue, first verify it's you:</p>
</div>
<input type="hidden" name="csrf" value="{{ csrf_token }}" />
{# TODO: errors #}
{{ field::input(label="Password", name="password", type="password") }}
{{ button::button(text="Confirm password") }}
{{ button::button(text="Next") }}
</form>
</section>