iSApps Posted December 4, 2022 Share Posted December 4, 2022 (edited) 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 December 4, 2022 by iSApps Clarify what token i'm referring to (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted December 5, 2022 Share Posted December 5, 2022 The token varies over time and per page. So it seems to me quite hard to derive something from that. What about the log that Prestashop maintains (Advanced settings->Logs)? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now