You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

PTA in CP give error code 13

Accepted answer
17
Views
2
Comments
edited Jun 7, 2022 1:15PM in General Technical Discussions 2 comments

Content

Steps which I've done.

1) PTA_ENABLED to yes

2) defined my external page URL. PTA_EXTERNAL_LOGIN_URL 

3) login required true on some pages.

4) set PTA_SECRET_KEY

4) In my external page redirect the login parameters in base64 encrypted string in this URL http://mysite/ci/pta/login/redirect/home/p_li/$ptaDataString

Here's my Script Code

<?php
$ptaDataArray = array(
'p_userid' => '[email protected]',
'p_passwd' => 'one', 
'p_email.addr' => '[email protected]',
'p_name.first' => 'one',
'p_name.last' => 'one'
);
$ptaDataArray['p_li_passwd'] = '12ab3c';
print_r($ptaDataArray);
$ptaDataString = "";
foreach($ptaDataArray as $key=>$value)
{
$ptaDataString .= ($ptaDataString === "") ? '' : '&';

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!