From 5854dff37ea07a6a1ea2275dc173271f61b8928b Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 12 Jun 2021 07:39:38 +0200 Subject: [PATCH] More robust error display --- resources/views/v1/auth/login.twig | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/resources/views/v1/auth/login.twig b/resources/views/v1/auth/login.twig index 109e53f734..3a7b336631 100644 --- a/resources/views/v1/auth/login.twig +++ b/resources/views/v1/auth/login.twig @@ -22,13 +22,14 @@ {% endif %} - {% if errors.has('email') %} + + {% if errors.count > 0 %}
@@ -46,6 +47,17 @@ {% endif %} + {# LDAP warning #} + {% if ldapWarning %} +
+ +
+ {% endif %} +
@@ -53,10 +65,10 @@
- {% if config('firefly.login_provider') == 'eloquent' %} + {% if config('firefly.authentication_guard') == 'web' %} {% else %} - + {% endif %}