From 4942a1511f27fd54850916842c1e592a066c145e Mon Sep 17 00:00:00 2001 From: "Angus B. Grieve-Smith" Date: Wed, 29 Apr 2020 17:50:57 -0400 Subject: [PATCH] Clarify errors in connexion.php --- oauth/connexion.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/oauth/connexion.php b/oauth/connexion.php index 57edba1..ece65b0 100644 --- a/oauth/connexion.php +++ b/oauth/connexion.php @@ -20,13 +20,18 @@ else // Check received data length (to prevent code injection) if (strlen($_POST['user']) > 15) { - echo 'Username has incorrect format ... Please try again

'; + echo 'Usernameis longer than 15 characters ... Please try again

'; echo 'Click here to come back to login page'; } - elseif (strlen($_POST['password']) > 50 || strlen($_POST['password']) <= 7) + elseif (strlen($_POST['password']) > 50) { - echo 'Password has incorrect format ... Please try again

'; - echo 'Click here to come back to login page'; + echo 'Password is longer than 50 characters ... Please try again

'; + echo 'Click here to come back to login page'; + + } elseif (strlen($_POST['password']) <= 7) + { + echo 'Password is shorter than 7 characters ... Please try again

'; + echo 'Click here to come back to login page'; } else {