Skip to content

Commit

Permalink
Merge pull request #12 from PrestaShopCorp/feat/map-official-services
Browse files Browse the repository at this point in the history
feat: map to official new services
  • Loading branch information
jokesterfr authored Aug 14, 2024
2 parents 008ef88 + 0cf0241 commit 83d6d43
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions src/Service/PsAccountsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ public function getToken()
return 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjFlOTczZWUwZTE2ZjdlZWY0ZjkyMWQ1MGRjNjFkNzBiMmVmZWZjMTkiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL3NlY3VyZXRva2VuLmdvb2dsZS5jb20vcHJlc3Rhc2hvcC1yZWFkeS1wcm9kIiwiYXVkIjoicHJlc3Rhc2hvcC1yZWFkeS1wcm9kIiwiYXV0aF90aW1lIjoxNjc5MDY1NzE0LCJ1c2VyX2lkIjoiZjA3MTgxZjctMjM5OS00MDZkLTkyMjYtNGI2YzE0Y2Y2MDY4Iiwic3ViIjoiZjA3MTgxZjctMjM5OS00MDZkLTkyMjYtNGI2YzE0Y2Y2MDY4IiwiaWF0IjoxNjc5MDY1NzE0LCJleHAiOjE2NzkwNjkzMTQsImVtYWlsIjoiaHR0cGM4MTg4ODE2Mjc1NjVldW5ncm9raW8xQHNob3AucHJlc3Rhc2hvcC5jb20iLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiZmlyZWJhc2UiOnsiaWRlbnRpdGllcyI6eyJlbWFpbCI6WyJodHRwYzgxODg4MTYyNzU2NWV1bmdyb2tpbzFAc2hvcC5wcmVzdGFzaG9wLmNvbSJdfSwic2lnbl9pbl9wcm92aWRlciI6ImN1c3RvbSJ9fQ.mbv_nY6rmz_OpfN32CyvsTa-ahlUO9FD1cok24HrZHNGkR-ZD6OzXvHedcFtU0RpafAdDdTYcU3GW_kiN_lqNwrbA2uO8LAS-JdQT1E1BFkhengrxFt8Gh_lBm_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engrxFt8Gh_lBm_yE4B6DngvAs-6SGctmNxOc-wfWA3AC_CXKpJviu1P08tz7nYRwAQw_6EH1XaDVl9Cva51cCWUTFzWZ5VHgBUA-GdAyEbLkL9M9rRk0hy-KERwW-2plV_Mu5tpfnFUYZx2ZWwn-_ODEFyindyKiimuwZ6FF5p0pfZxfbMA_EXUdCsUlg1DMlv8zari-50PkhsnkD_DQ-dbmgpiKuM3ZFnL6vCSVw';
}

/**
* @return string
*/
Expand All @@ -64,6 +72,16 @@ public function getUserUuid()
return 'f07181f7-2399-406d-9226-4b6c14cf6068';
}

/**
* @deprecated
*
* @return string
*/
public function getUserUuidV4()
{
return 'f07181f7-2399-406d-9226-4b6c14cf6068';
}

/**
* @return bool
*/
Expand Down Expand Up @@ -103,4 +121,50 @@ public function getAccountsVueCdn()
{
return 'test.com';
}

/**
* @return string
*/
public function getAccountsCdn()
{
return 'test.com';
}

/**
* @return string
*/
public function getAdminAjaxUrl()
{
return 'http://localhost:8080/admin-dev/index.php';
}

/**
* @return void
*/
public function autoReonboardOnV5()
{
}

/**
* @return void
*/
public function enableLogin()
{
}

/**
* @return null
*/
public function getEmployeeAccount()
{
return null;
}

/**
* @return bool
*/
public function getLoginActivated()
{
return true;
}
}

0 comments on commit 83d6d43

Please sign in to comment.