Skip to content
Snippets Groups Projects
Commit d65f7bba authored by Haidar's avatar Haidar
Browse files

feat: edit register parameter pass soap

parent b7743cdc
Branches
Tags
1 merge request!2feat: edit register parameter pass soap
...@@ -24,7 +24,12 @@ $stmt->bind_param("sss", $username, $email, $en_password); ...@@ -24,7 +24,12 @@ $stmt->bind_param("sss", $username, $email, $en_password);
if ($stmt->execute() === TRUE) { if ($stmt->execute() === TRUE) {
try { try {
$arg0 = $username; $query = "SELECT IFNULL(MAX(id), 0) + 1 AS next_user_id FROM users";
$result = $conn->query($query);
$row = $result->fetch_assoc();
$nextUserId = $row['next_user_id'];
$arg0 = $nextUserId;
$arg1 = password_hash($password, PASSWORD_BCRYPT); $arg1 = password_hash($password, PASSWORD_BCRYPT);
$requestBody = '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> $requestBody = '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body> <Body>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment