From bc18840a1a93f186ccb038559249b0f5deef74df Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 8 Apr 2016 11:11:10 +0200 Subject: [PATCH] Require login/forgot forms fields so they are validated client-side too --- pages/admin/forgot.md | 2 ++ pages/admin/login.md | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/pages/admin/forgot.md b/pages/admin/forgot.md index 9e8f3aa0..993a35fd 100644 --- a/pages/admin/forgot.md +++ b/pages/admin/forgot.md @@ -7,4 +7,6 @@ form: type: text placeholder: PLUGIN_ADMIN.USERNAME autofocus: true + validate: + required: true --- diff --git a/pages/admin/login.md b/pages/admin/login.md index 2d9b1fb1..554d59d1 100644 --- a/pages/admin/login.md +++ b/pages/admin/login.md @@ -11,8 +11,12 @@ form: type: text placeholder: PLUGIN_ADMIN.USERNAME autofocus: true + validate: + required: true - name: password type: password placeholder: PLUGIN_ADMIN.PASSWORD + validate: + required: true ---