21 lines
919 B
Plaintext
21 lines
919 B
Plaintext
<%#
|
|
Kratos flow form body (todo §4): the inner of the auth-card form — flow messages,
|
|
hidden inputs (incl. csrf_token), themed fields, then submit button(s). `flow` is a
|
|
FlowView (src/flow-view.ts). Captured by views/auth.ejs and handed to auth-card's body.
|
|
-%>
|
|
<% flow.messages.forEach((m) => { -%>
|
|
<%- include("alert", m) %>
|
|
<% }) -%>
|
|
<% flow.hidden.forEach((h) => { -%>
|
|
<input type="hidden" name="<%= h.name %>" value="<%= h.value %>">
|
|
<% }) -%>
|
|
<% flow.fields.forEach((field) => { -%>
|
|
<%- include("field", field) %>
|
|
<% }) -%>
|
|
<% if (flow.recoverHref) { -%>
|
|
<p class="auth-aside"><a href="<%= flow.recoverHref %>">Forgot password?</a></p>
|
|
<% } -%>
|
|
<% flow.buttons.forEach((b, i) => { -%>
|
|
<button type="submit" class="btn btn-block<%= i === 0 ? " btn-primary" : "" %>"<% if (b.name) { %> name="<%= b.name %>"<% } %><% if (b.value != null) { %> value="<%= b.value %>"<% } %>><%= b.label %></button>
|
|
<% }) -%>
|