mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-06 13:25:46 +01:00
Require login/forgot forms fields so they are validated client-side too
This commit is contained in:
@@ -7,4 +7,6 @@ form:
|
|||||||
type: text
|
type: text
|
||||||
placeholder: PLUGIN_ADMIN.USERNAME
|
placeholder: PLUGIN_ADMIN.USERNAME
|
||||||
autofocus: true
|
autofocus: true
|
||||||
|
validate:
|
||||||
|
required: true
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -11,8 +11,12 @@ form:
|
|||||||
type: text
|
type: text
|
||||||
placeholder: PLUGIN_ADMIN.USERNAME
|
placeholder: PLUGIN_ADMIN.USERNAME
|
||||||
autofocus: true
|
autofocus: true
|
||||||
|
validate:
|
||||||
|
required: true
|
||||||
|
|
||||||
- name: password
|
- name: password
|
||||||
type: password
|
type: password
|
||||||
placeholder: PLUGIN_ADMIN.PASSWORD
|
placeholder: PLUGIN_ADMIN.PASSWORD
|
||||||
|
validate:
|
||||||
|
required: true
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user