Fix Bug 430 #63
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "Bug430-Eden"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Hello teacher, please check my request.
@ -118,1 +134,4 @@
. "('$email','$password_hash','$fullname','Student','$student_id')";
$_SESSION['user_fullname'] =$_SESSION['user_fullname_temp'];
@eden
Please add a whitespace after
=
.@eden
Thanks.
Ayoub also fixed the "logged in even after failed sign-up" problem.
Could you check his solution and tell me whether your fix has overlap with his?
Ayoub's fix
Yes teacher, it does. We also managed to fix that by adding one line of code.
$_SESSION['user_fullname'] = null;
The creator of this project used this line to prevent unwanted login attempt during sign up. It has this code ($_SESSION['user_fullname'] = null;) throughout the script.php except under the strong password validation check. So, we decided to add this line to solve this problem.
@eden
After merging Pull Request 61 to Hui-Organize, your Pull Request now has conflicts with the updated branch Hui-Organize.
This is probably because you and the author of Pull Request 61 changed the same line from the same file.
Please resolve the conflict.
Thanks,
Hui
@mrlan hello teacher, I have completed the task.
@eden
Thanks. I will have a look.
Hui
@ -106,15 +119,69 @@ if (!empty($_POST["form_signup"])) {
if (!empty($_POST["form_signup"])) {
$fullname = mysqli_real_escape_string($con, $_POST["fullname"]);
$student_id = mysqli_real_escape_string($con, $_POST["user_student_id"]);
<<<<<<< HEAD
@eden
Can the updated PHP script run with
HEAD
on line 122?Hui
@mrlan
Yes, it works perfectly fine.