inital commit
This commit is contained in:
64
public/sc.php
Normal file
64
public/sc.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
$base_url = "https://stage-sc.consumerdirect.app";
|
||||
$login_url = $base_url.'/external-login';
|
||||
$loginType = "PARTNER_API";
|
||||
$j_username = "emo.hussain1111@gmail.com";
|
||||
$j_password = "12345678";
|
||||
$token = "ddeada92-6310-4850-82c4-0b99159b9339";
|
||||
$report_page_url = $base_url."/member/credit-report/3b/";
|
||||
|
||||
/*$curl = curl_init();
|
||||
|
||||
curl_setopt_array($curl, array(
|
||||
CURLOPT_URL => 'https://stage-sc.consumerdirect.app/external-login',
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_ENCODING => '',
|
||||
CURLOPT_MAXREDIRS => 10,
|
||||
CURLOPT_TIMEOUT => 0,
|
||||
CURLOPT_FOLLOWLOCATION => true,
|
||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||
CURLOPT_CUSTOMREQUEST => 'POST',
|
||||
CURLOPT_POSTFIELDS => 'loginType=CUSTOMER&j_username=emo.hussain1111@40gmail.com&j_password=12345678&_csrf=ddeada92-6310-4850-82c4-0b99159b9339',
|
||||
CURLOPT_HTTPHEADER => array(
|
||||
'Content-Type: application/x-www-form-urlencoded'
|
||||
),
|
||||
));
|
||||
|
||||
$response = curl_exec($curl);
|
||||
|
||||
curl_close($curl);
|
||||
echo "<pre>";print_r($response);*/
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
|
||||
<script>
|
||||
var settings = {
|
||||
"url": "https://stage-sc.consumerdirect.app/join/?PID=11885",
|
||||
"method": "POST",
|
||||
"timeout": 0,
|
||||
"headers": {
|
||||
"Content-Type": "application/x-www-form-urlencoded"
|
||||
},
|
||||
"data": {
|
||||
"loginType": "PARTNER_API",
|
||||
"j_username": "emo.hussain1111@gmail.com",
|
||||
"j_password": "12345678",
|
||||
"_csrf": "ddeada92-6310-4850-82c4-0b99159b9339"
|
||||
}
|
||||
};
|
||||
|
||||
$.ajax(settings).done(function (response) {
|
||||
//response = JSON.parse(response)
|
||||
console.log(response);
|
||||
});
|
||||
</script>
|
||||
|
||||
<!--<form method="post" action="<?= $login_url ?>">
|
||||
<input type="hidden" name="_csrf" value="<?= $token ?>">
|
||||
<input type="hidden" name="loginType" value="<?= $loginType ?>"/>
|
||||
<input type="text" name="j_username" value="<?= $j_username ?>"/>
|
||||
<input type="text" name="j_password" value="<?= $j_password ?>"/>
|
||||
<input type="submit"/>
|
||||
</form>-->
|
||||
Reference in New Issue
Block a user