Can't login into the admin section after I turned on multishop option
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 15
- Joined: 17 Aug 2022, 04:19
Can't login into the admin section after I turned on multishop option
Hello,
I need help! I'm unable to log into the admin section after I turned the SHOP_MULTISHOP option to true in env file.
I'm using aimeos-laravel: 2022.07.2
I need help! I'm unable to log into the admin section after I turned the SHOP_MULTISHOP option to true in env file.
I'm using aimeos-laravel: 2022.07.2
Re: Can't login into the admin section after I turned on multishop option
If you turn on multi-shop option, the login is also per site. Instead of "/login", it's "/<sitecode>/login", e.g. "/default/login".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 15
- Joined: 17 Aug 2022, 04:19
Re: Can't login into the admin section after I turned on multishop option
Thanks for the reply.
Yes I had used /<sitecode>/login as you can see from the screenshot. but after I put my credentials and clicked on login it redirected me to the error page.
Re: Can't login into the admin section after I turned on multishop option
Can you post the output of "php artisan route:list", please?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 15
- Joined: 17 Aug 2022, 04:19
Re: Can't login into the admin section after I turned on multishop option
Code: Select all
GET|HEAD / ............................................................................................................................................
POST _ignition/execute-solution ..................................... ignition.executeSolution › Spatie\LaravelIgnition › ExecuteSolutionController
GET|HEAD _ignition/health-check ................................................. ignition.healthCheck › Spatie\LaravelIgnition › HealthCheckController
POST _ignition/update-config .............................................. ignition.updateConfig › Spatie\LaravelIgnition › UpdateConfigController
GET|HEAD admin .......................................................................... aimeos_shop_admin › Aimeos\Shop › AdminController@indexAction ─────┬──────────┐
POST admin/{site}/jqadm/batch/{resource} ...................................... aimeos_shop_jqadm_batch › Aimeos\Shop › JqadmController@batchAction File │ Size │
GET|HEAD admin/{site}/jqadm/copy/{resource}/{id} .................................... aimeos_shop_jqadm_copy › Aimeos\Shop › JqadmController@copyAction ─────┼──────────┤
GET|HEAD admin/{site}/jqadm/create/{resource} ................................... aimeos_shop_jqadm_create › Aimeos\Shop › JqadmController@createAction p.js │ 695 KiB │
POST admin/{site}/jqadm/delete/{resource}/{id?} ............................. aimeos_shop_jqadm_delete › Aimeos\Shop › JqadmController@deleteAction m.js │ 1.07 MiB │
GET|POST|HEAD admin/{site}/jqadm/export/{resource} ............................... aimeos_shop_jqadm_export › Aimeos\Shop › JqadmController@exportAction .css │ 29.9 KiB │
GET|HEAD admin/{site}/jqadm/file/{type} ............................................. aimeos_shop_jqadm_file › Aimeos\Shop › JqadmController@fileAction ─────┴──────────┘
GET|HEAD admin/{site}/jqadm/get/{resource}/{id} ....................................... aimeos_shop_jqadm_get › Aimeos\Shop › JqadmController@getAction
POST admin/{site}/jqadm/save/{resource} ......................................... aimeos_shop_jqadm_save › Aimeos\Shop › JqadmController@saveAction
GET|POST|HEAD admin/{site}/jqadm/search/{resource} ............................... aimeos_shop_jqadm_search › Aimeos\Shop › JqadmController@searchAction
OPTIONS admin/{site}/jsonadm/{resource?} ................................. aimeos_shop_jsonadm_options › Aimeos\Shop › JsonadmController@optionsAction
DELETE admin/{site}/jsonadm/{resource}/{id?} .............................. aimeos_shop_jsonadm_delete › Aimeos\Shop › JsonadmController@deleteAction
GET|HEAD admin/{site}/jsonadm/{resource}/{id?} .................................... aimeos_shop_jsonadm_get › Aimeos\Shop › JsonadmController@getAction
PATCH admin/{site}/jsonadm/{resource}/{id?} ................................ aimeos_shop_jsonadm_patch › Aimeos\Shop › JsonadmController@patchAction
POST admin/{site}/jsonadm/{resource}/{id?} .................................. aimeos_shop_jsonadm_post › Aimeos\Shop › JsonadmController@postAction
PUT admin/{site}/jsonadm/{resource}/{id?} .................................... aimeos_shop_jsonadm_put › Aimeos\Shop › JsonadmController@putAction
GET|HEAD api/user .....................................................................................................................................
GET|HEAD sanctum/csrf-cookie .............................................................................. Laravel\Sanctum › CsrfCookieController@show
GET|POST|HEAD {site} .......................................................................... aimeos_home › Aimeos\Shop › CatalogController@homeAction
GET|HEAD {site}/confirm-password ........................................................... password.confirm › Auth\ConfirmablePasswordController@show
POST {site}/confirm-password ............................................................................. Auth\ConfirmablePasswordController@store
POST {site}/email/verification-notification ................................ verification.send › Auth\EmailVerificationNotificationController@store
GET|HEAD {site}/forgot-password ............................................................ password.request › Auth\PasswordResetLinkController@create
POST {site}/forgot-password ............................................................... password.email › Auth\PasswordResetLinkController@store
GET|OPTIONS|HEAD {site}/jsonapi/{resource?} ................................ aimeos_shop_jsonapi_options › Aimeos\Shop › JsonapiController@optionsAction
DELETE {site}/jsonapi/{resource} .......................................... aimeos_shop_jsonapi_delete › Aimeos\Shop › JsonapiController@deleteAction
GET|HEAD {site}/jsonapi/{resource} ................................................ aimeos_shop_jsonapi_get › Aimeos\Shop › JsonapiController@getAction
PATCH {site}/jsonapi/{resource} ............................................ aimeos_shop_jsonapi_patch › Aimeos\Shop › JsonapiController@patchAction
POST {site}/jsonapi/{resource} .............................................. aimeos_shop_jsonapi_post › Aimeos\Shop › JsonapiController@postAction
PUT {site}/jsonapi/{resource} ................................................ aimeos_shop_jsonapi_put › Aimeos\Shop › JsonapiController@putAction
GET|HEAD {site}/login .............................................................................. login › Auth\AuthenticatedSessionController@create
POST {site}/login ....................................................................................... Auth\AuthenticatedSessionController@store
POST {site}/logout ........................................................................... logout › Auth\AuthenticatedSessionController@destroy
GET|POST|HEAD {site}/p/p/{path?} ................................................................ aimeos_page › Aimeos\Shop › PageController@indexAction
GET|POST|HEAD {site}/profile ......................................................... aimeos_shop_account › Aimeos\Shop › AccountController@indexAction
GET|POST|HEAD {site}/profile/download/{dl_id} ............................ aimeos_shop_account_download › Aimeos\Shop › AccountController@downloadAction
GET|POST|HEAD {site}/profile/favorite/{fav_action?}/{fav_id?}/{d_name?}/{d_pos?} aimeos_shop_account_favorite › Aimeos\Shop › AccountController@indexAc…
GET|POST|HEAD {site}/profile/watch/{wat_action?}/{wat_id?}/{d_name?}/{d_pos?} .. aimeos_shop_account_watch › Aimeos\Shop › AccountController@indexAction
GET|HEAD {site}/register .............................................................................. register › Auth\RegisteredUserController@create
POST {site}/register .......................................................................................... Auth\RegisteredUserController@store
POST {site}/reset-password ..................................................................... password.update › Auth\NewPasswordController@store
GET|HEAD {site}/reset-password/{token} ............................................................. password.reset › Auth\NewPasswordController@create
GET|POST|HEAD {site}/s/{s_name}/{f_supid} ......................................... aimeos_shop_supplier › Aimeos\Shop › SupplierController@detailAction
GET|POST|HEAD {site}/shop ................................................................ aimeos_shop_list › Aimeos\Shop › CatalogController@listAction
GET|POST|HEAD {site}/shop/basket ....................................................... aimeos_shop_basket › Aimeos\Shop › BasketController@indexAction
GET|POST|HEAD {site}/shop/checkout/{c_step?} ....................................... aimeos_shop_checkout › Aimeos\Shop › CheckoutController@indexAction
GET|POST|HEAD {site}/shop/confirm/{code?} ......................................... aimeos_shop_confirm › Aimeos\Shop › CheckoutController@confirmAction
GET|POST|HEAD {site}/shop/count ........................................................ aimeos_shop_count › Aimeos\Shop › CatalogController@countAction
GET|POST|HEAD {site}/shop/pin ............................................... aimeos_shop_session_pinned › Aimeos\Shop › CatalogController@sessionAction
GET|POST|HEAD {site}/shop/stock ........................................................ aimeos_shop_stock › Aimeos\Shop › CatalogController@stockAction
GET|POST|HEAD {site}/shop/suggest .................................................. aimeos_shop_suggest › Aimeos\Shop › CatalogController@suggestAction
GET|POST|HEAD {site}/shop/{d_name}/{d_pos?}/{d_prodid?} .............................. aimeos_shop_detail › Aimeos\Shop › CatalogController@detailAction
GET|POST|HEAD {site}/shop/{f_name}~{f_catid} ............................................. aimeos_shop_tree › Aimeos\Shop › CatalogController@treeAction
GET|POST|HEAD {site}/update ......................................................... aimeos_shop_update › Aimeos\Shop › CheckoutController@updateAction
GET|HEAD {site}/verify-email .................................................... verification.notice › Auth\EmailVerificationPromptController@__invoke
GET|HEAD {site}/verify-email/{id}/{hash} .................................................... verification.verify › Auth\VerifyEmailController@__invoke
GET|POST|HEAD {site}/{path?} .................................................................... aimeos_page › Aimeos\Shop › PageController@indexAction
-
- Posts: 15
- Joined: 17 Aug 2022, 04:19
Re: Can't login into the admin section after I turned on multishop option
I solved the issue by adding sitecode to the routes in the login form using "app('aimeos.context')->get()->locale()->getSiteItem()->getCode() " in Login blade view. I had to add this further into the verify-email blade as well.
Re: Can't login into the admin section after I turned on multishop option
Use "airoute()" function everywhere you create an URL in the non-Aimeos templates. This will add the sitecode, locale and currency if available and necessary:
https://github.com/aimeos/aimeos/blob/m ... ade.php#L9
https://github.com/aimeos/aimeos/blob/m ... ade.php#L9
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 15
- Joined: 17 Aug 2022, 04:19
Re: Can't login into the admin section after I turned on multishop option
Thank's I'll use that.aimeos wrote: ↑22 Aug 2022, 06:03 Use "airoute()" function everywhere you create an URL in the non-Aimeos templates. This will add the sitecode, locale and currency if available and necessary:
https://github.com/aimeos/aimeos/blob/m ... ade.php#L9