louie-kyc #1

Merged
erwin merged 27 commits from louie-kyc into main 2024-04-19 10:33:46 +08:00
2 changed files with 1 additions and 5 deletions
Showing only changes of commit 6cb4c0b4d2 - Show all commits

View File

@ -20,7 +20,7 @@ if (isset($_GET['kycID'], $_GET['userID'], $_GET['isAccepted'])) {
$BearerToken = $_SESSION['token'];
if ($isAccepted) {
$reason = 'Congratulations, Your KYC got accepted!!';
$reason = 'Congratulations, Your KYC got accepted !!';
// If isAccepted is true, call accept_kyc function
if (accept_kyc($kycID, $userID, $reason, $BearerToken, $user_id)) {
// If accept_kyc is successful, redirect to users-kyc.php

View File

@ -77,8 +77,6 @@ $BearerToken = $_SESSION['token'];
<th width='1'>User ID</th>
<th>KYC ID</th>
<th>Name</th>
<th>Date of Birth</th>
<th>ID Number</th>
<th>Status</th>
<th> Action </th>
</tr>
@ -90,8 +88,6 @@ $BearerToken = $_SESSION['token'];
echo "<td>" . $val['userRef'] . "</td>";
echo "<td>" . $val['_id'] . "</td>";
echo "<td>" . $val['full_name'] . "</td>";
echo "<td>" . $val['date_of_birth'] . "</td>";
echo "<td>" . $val['id_num'] . "</td>";
echo "<td>" . $val['status'] . "</td> ";
echo "<td>" .
"<button class='btn btn-info' onclick=location.href='edit-kyc.php?kycID=" . $val['_id'] . "'>Edit</button>" .