Skip to content

Commit

Permalink
2.11.26 Update DNS Lookup ws
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Nov 21, 2024
1 parent da1cfb0 commit b6a9894
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/webservices/includes/ws-constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
define('CONTENT_TYPE_JSON', 'Content-Type: application/json');
define('CONTENT_TYPE_XML', 'Content-Type: text/xml; charset=UTF-8');
define('DATE_TIME_FORMAT', 'Y-m-d H:i:s');
define('XSD_ANY_TIME', 'xsd:anyType');

define('JWT_SECRET_KEY', 'snowman');
define('JWT_EXPIRATION_TIME', 3600); // Token expiration time in seconds
Expand Down
16 changes: 8 additions & 8 deletions src/webservices/soap/ws-user-account.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function getUser($pUsername) {
'message' => "User data fetched successfully",
'securityLevel' => $lSecurityLevel,
'timestamp' => $lTimestamp,
'output' => new soapval('output', XSD_ANY_TYPE, $lResults)
'output' => new soapval('output', 'xsd:anyType', $lResults)
);

$LogHandler->writeToLog("ws-user-account.php: Fetched user-information for: {$pUsername}");
Expand Down Expand Up @@ -244,7 +244,7 @@ function registerUser($pUsername, $pPassword, $pFirstname, $pLastname, $pSignatu
'message' => "User {$pUsername} already exists",
'securityLevel' => $lSecurityLevel,
'timestamp' => $lTimestamp,
'output' => new soapval('output', XSD_ANY_TYPE, '')
'output' => new soapval('output', 'xsd:anyType', '')
);
return $lResponse;
} else {
Expand All @@ -253,7 +253,7 @@ function registerUser($pUsername, $pPassword, $pFirstname, $pLastname, $pSignatu
'message' => "Inserted account {$pUsername}",
'securityLevel' => $lSecurityLevel,
'timestamp' => $lTimestamp,
'output' => new soapval('output', XSD_ANY_TYPE, '')
'output' => new soapval('output', 'xsd:anyType', '')
);
$LogHandler->writeToLog("ws-user-account.php: Inserted account {$pUsername}");
return $lResponse;
Expand Down Expand Up @@ -284,7 +284,7 @@ function updateUser($pUsername, $pPassword, $pFirstname, $pLastname, $pSignature
'message' => "Updated account {$pUsername}",
'securityLevel' => $lSecurityLevel,
'timestamp' => $lTimestamp,
'output' => new soapval('output', XSD_ANY_TYPE, '')
'output' => new soapval('output', 'xsd:anyType', '')
);
$LogHandler->writeToLog("ws-user-account.php: Updated account {$pUsername}");
return $lResponse;
Expand All @@ -294,7 +294,7 @@ function updateUser($pUsername, $pPassword, $pFirstname, $pLastname, $pSignature
'message' => "Inserted account {$pUsername}",
'securityLevel' => $lSecurityLevel,
'timestamp' => $lTimestamp,
'output' => new soapval('output', XSD_ANY_TYPE, '')
'output' => new soapval('output', 'xsd:anyType', '')
);
$LogHandler->writeToLog("ws-user-account.php: Created account {$pUsername}");
return $lResponse;
Expand Down Expand Up @@ -323,7 +323,7 @@ function deleteUser($pUsername, $pPassword) {
'message' => "Deleted account {$pUsername}",
'securityLevel' => $lSecurityLevel,
'timestamp' => $lTimestamp,
'output' => new soapval('output', XSD_ANY_TYPE, '')
'output' => new soapval('output', 'xsd:anyType', '')
);
$LogHandler->writeToLog("ws-user-account.php: Deleted account {$pUsername}");
return $lResponse;
Expand All @@ -332,7 +332,7 @@ function deleteUser($pUsername, $pPassword) {
'message' => "Could not authenticate account {$pUsername}. Password incorrect.",
'securityLevel' => $lSecurityLevel,
'timestamp' => $lTimestamp,
'output' => new soapval('output', XSD_ANY_TYPE, '')
'output' => new soapval('output', 'xsd:anyType', '')
);
return $lResponse;
}
Expand All @@ -341,7 +341,7 @@ function deleteUser($pUsername, $pPassword) {
'message' => "User {$pUsername} does not exist",
'securityLevel' => $lSecurityLevel,
'timestamp' => $lTimestamp,
'output' => new soapval('output', XSD_ANY_TYPE, '')
'output' => new soapval('output', 'xsd:anyType', '')
);
return $lResponse;
}
Expand Down

0 comments on commit b6a9894

Please sign in to comment.