mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Prevent users setting/hashing an empty password
This commit is contained in:
@@ -92,6 +92,11 @@ if (isset($_POST['edit_your_user_password'])) {
|
||||
|
||||
$new_password = trim($_POST['new_password']);
|
||||
|
||||
if (empty($new_password)) {
|
||||
header('Location: user_security.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
// Email notification when password or email is changed
|
||||
$user_sql = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT user_name, user_email FROM users WHERE user_id = $session_user_id"));
|
||||
$name = sanitizeInput($user_sql['user_name']);
|
||||
|
||||
Reference in New Issue
Block a user