Update profile.php

This commit is contained in:
jakani24
2024-05-04 19:12:39 +02:00
parent 9e1ce2d252
commit bd06d53905

View File

@@ -30,7 +30,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
$success=0;
die("Connection failed: " . $conn->connect_error);
}
$user_hex_id=bin2hex($user_hex_id);
$user_hex_id=bin2hex($username_new);
$stmt = $conn->prepare("UPDATE users set email = ?, username = ?, telegram_id = ?, allow_pw_login = ?, user_hex_id = ? where username = ?");
$stmt->bind_param("sssiss", $email, $username_new,$telegram_id, $pw_login,$user_hex_id , $username);