Skip to content
Snippets Groups Projects
Commit 542b27f9 authored by Muhammad Haidar Akita Tresnadi's avatar Muhammad Haidar Akita Tresnadi
Browse files

Merge branch 'phpHaidar' into 'main'

feat: edit register parameter pass soap

See merge request !2
parents ddd69aab d65f7bba
1 merge request!2feat: edit register parameter pass soap
......@@ -24,7 +24,12 @@ $stmt->bind_param("sss", $username, $email, $en_password);
if ($stmt->execute() === TRUE) {
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);
$requestBody = '<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<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