<form
    th:fragment="form"
    class="halo-form"
    name="login-form"
    id="login-form"
    th:action="${authProvider.spec.authenticationUrl}"
    th:method="${authProvider.spec.method}"
>
    <div class="alert alert-error" role="alert" th:if="${param.error.size() > 0}" th:with="error = ${param.error[0]}">
        <strong th:if="${error == 'invalid-credential'}">
            <span th:text="#{form.error.invalidCredential}"></span>
        </strong>
        <strong th:if="${error == 'rate-limit-exceeded'