cb_token: text /validation one word only with letters and numbers
cb_api_token :
return ( new \Joomla\CMS\Encrypt\Aes( $_CB_framework->getCfg( 'secret' ) . ':[cb_token]]' ) )->encryptString( (string) \CBLib\Application\Application::MyUser()->getUserId() );
autoaction user code:
return (int) ( new \Joomla\CMS\Encrypt\Aes( $_CB_framework->getCfg( 'secret' ) . ':[cb_token]' ) )->decryptString( '[get_token]' );
Please Log in to join the conversation.
$user->set( 'cb_api_token', ( new \Joomla\CMS\Encrypt\Aes( $_CB_framework->getCfg( 'secret' ) . ':[cb_token]' ) )->encryptString( (string) \CBLib\Application\Application::MyUser()->getUserId() ) );
$user->store();
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
global $_CB_framework;
$user->set( 'cb_api_token', ( new \Joomla\CMS\Encrypt\Aes( $_CB_framework->getCfg( 'secret' ) . ':[cb_token]' ) )->encryptString( (string) \CBLib\Application\Application::MyUser()->getUserId() ) );
$user->store();
Please Log in to join the conversation.