From e90f87ac63d8a90a550b725e81d81786c0aa2e05 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 10 Nov 2023 14:44:06 +0000 Subject: [PATCH] Apply validation to authentication form + update locale --- locale/en_US/LC_MESSAGES/messages.po | 12 ++++++++++++ templates/admin.php | 22 +++++++++++++++++----- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/locale/en_US/LC_MESSAGES/messages.po b/locale/en_US/LC_MESSAGES/messages.po index 4a4b17f8..4a2f4948 100644 --- a/locale/en_US/LC_MESSAGES/messages.po +++ b/locale/en_US/LC_MESSAGES/messages.po @@ -98,6 +98,18 @@ msgstr "New password" msgid "Repeat new password" msgstr "Repeat new password" +msgid "Please provide a valid username." +msgstr "Please provide a valid username." + +msgid "Please enter your old password." +msgstr "Please enter your old password." + +msgid "Please enter a new password." +msgstr "Please enter a new password." + +msgid "Please re-enter your new password." +msgstr "Please re-enter your new password." + #: includes/configure_client.php msgid "Client settings" msgstr "Client settings" diff --git a/templates/admin.php b/templates/admin.php index ee6543b4..3901556a 100755 --- a/templates/admin.php +++ b/templates/admin.php @@ -11,22 +11,28 @@
showMessages(); ?>

-
+
- + +
+ +
- +
+
+ +
@@ -34,10 +40,13 @@
- +
+
+ +
@@ -45,10 +54,13 @@
- +
+
+ +