diff --git a/Admin.php b/Admin.php index 3234bf3..6dc676e 100644 --- a/Admin.php +++ b/Admin.php @@ -73,7 +73,7 @@ if ($_SESSION['user_type'] != "Lecturer" && $_SESSION['user_type'] != "Admin") {
Initial password - + Leave it empty to let LRR generate a strong password for you.

User type: diff --git a/Script.php b/Script.php index c817ac5..028baf8 100644 --- a/Script.php +++ b/Script.php @@ -289,7 +289,7 @@ if (!empty($_POST["form_createlecturrer"])){ $email = mysqli_real_escape_string($con, $_POST["email"]); $fullname = mysqli_real_escape_string($con, $_POST["fullname"]); $type = mysqli_real_escape_string($con, $_POST["type"]); - $password = mysqli_real_escape_string($con, $_POST["passport"]); + $password = mysqli_real_escape_string($con, $_POST["password"]); $pass_len=strlen($password); if ($pass_len==0) { $password = generateStrongPassword();