Jump to content

Edit History

iSApps

iSApps


Clarify what token i'm referring to

Hello!

I need to identifier a ps employee from the access logs, but i'm strugling to find the connection between the token (in the backoffice url's) and the employee_id. (As the token stored in ps_employee_session, does not match the tokens used in the url)

(Please correct me if i'm wrong) When a login is made on the prestashop admin controller the function processLogin() is called, then, the token in the url its created from a methond in the Link class, that calls the function Tools::getAdminToken($tab . (int) Tab::getIdFromClassName($tab) . (int) $context->employee->id), that will eventually call return md5(_COOKIE_KEY_ . $passwd);

I haven't figured it out how to from the token find out the employee id (or even if its possible), its there a better way to figure this out?

 

iSApps

iSApps

Hello!

I need to identifier a ps employee from the access logs, but i'm strugling to find the connection between the token and the employee_id. (As the token stored in ps_employee_session, does not match the tokens used in the url)

(Please correct me if i'm wrong) When a login is made on the prestashop admin controller the function processLogin() is called, then, the token in the url its created from a methond in the Link class, that calls the function Tools::getAdminToken($tab . (int) Tab::getIdFromClassName($tab) . (int) $context->employee->id), that will eventually call return md5(_COOKIE_KEY_ . $passwd);

I haven't figured it out how to from the token find out the employee id (or even if its possible), its there a better way to figure this out?

 

iSApps

iSApps

Hello!

I need to identifier a ps employee from the access logs, but i'm strugling to find the connection between the token and the employee_id. (As the token stored in ps_employee_session, does not match the tokens used in the url)

(Please correct me if i'm wrong) When a login is made on the prestashop admin controller, the function processLogin(), the token in the url its created from a methond in the Link class, that calls the function Tools::getAdminToken($tab . (int) Tab::getIdFromClassName($tab) . (int) $context->employee->id), that will eventually call return md5(_COOKIE_KEY_ . $passwd);

I haven't figured it out how to from the token find out the employee id (or even if its possible), its there a better way to figure this out?

 

×
×
  • Create New...