Jump to content

Finding employee id from url &token=


iSApps

Recommended Posts

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?

 

Edited by iSApps
Clarify what token i'm referring to (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...