| Name | Size | Mode | Actions |
|---|---|---|---|
| AddClient.php | 4171 | 0644 | editdlrm |
| AddCoursePreference.php | 18995 | 0644 | editdlrm |
| updateclient.php | 2728 | 0644 | editdlrm |
| UpdateClient1.php | 2726 | 0644 | editdlrm |
| Update_Course_Preference.php | 11468 | 0644 | editdlrm |
| Update_Course_Preference_Secretarial.php | 4129 | 0644 | editdlrm |
| Update_Profile.php | 4514 | 0644 | editdlrm |
| Update_Reference.php | 9131 | 0644 | editdlrm |
| Update_Reference_Follow_Up.php | 7435 | 0644 | editdlrm |
/home/techb158/workloadmatch.com/workloadmatch.com/Teacher/Inc/Update_Profile.php (4514B)
Invalid password configuration.
'; } $random_salt = hash('sha512', uniqid(openssl_random_pseudo_bytes(16), TRUE)); // Create salted password $password = hash('sha512', $password . $random_salt); //$error_msg .= $FUserNames .' '. $Admin_ID .' '. $LUserNames; // $error_msg .= $FUserNames .' '. $random_salt .' '. $LUserNames .' '. $Address .' '. $Phones .' '. $CompanyNames .' '. $Admin_ID .' '. $email .' '. $password ; $user_n=$_SESSION['user_id']; $stmt = $mysqli->prepare('SELECT * FROM Teacher_Profile WHERE Teacher_ID = ?'); $stmt->bind_param('s', $user_n); $stmt->execute(); $result = $stmt->get_result(); $row = $result->fetch_assoc(); $count =$result->num_rows; if($count > 0) { if (empty($error_msg)) { if (!$mysqli->query("UPDATE Teacher_Profile SET Password ='$password', salt='$random_salt' WHERE User_Name ='".$row['User_Name']."' AND Teacher_ID ='".$user_n."'")) { // header('Location: profile.php?error='.$mysqli->error); header('Location: profile.php?error=Client password failure to update!'); exit(); } } header('Location: profile.php?error=User password is updated successfully. Thanks!'); exit(); } }else { header('Location: profile.php?error=all information are required!'); exit(); } }