bug 352 update 6-12-23

pull/59/head
KOUONTCHOU NEIL ARMSTRONG 2023-12-06 03:23:42 +01:00
parent fec5499861
commit 7f26ff5fc9
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ if ($_SESSION['user_type'] != "Lecturer" && $_SESSION['user_type'] != "Admin") {
<input type="text" name="email" placeholder="Email / Student Number" class="form-control" > <br>
Initial password
<input type="text" class="form-control" name="passport" minlength="8" placeholder="Initial password" >
<input type="password" class="form-control" name="password" minlength="8" placeholder="Initial password" >
Leave it empty to let LRR generate a strong password for you.<br><br>
User type:

View File

@ -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();