login as user from admin panel

Help for integrating the Laravel package
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!
antonlinderer
Posts: 42
Joined: 14 Sep 2017, 09:59

login as user from admin panel

Post by antonlinderer » 13 Dec 2017, 10:04

Is there a way to login as another user from admin panel once you are logged in as administrator?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: login as user from admin panel

Post by aimeos » 13 Dec 2017, 23:15

No, you can't impersonate as another user. The Laravel users table and the Laravel Gate permission system isn't designed for that.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

antonlinderer
Posts: 42
Joined: 14 Sep 2017, 09:59

Re: login as user from admin panel

Post by antonlinderer » 14 Dec 2017, 07:50

A popular boilerplate for Laravel has this feature of "Login As" User: http://laravel-boilerplate.com/5.5/docu ... ss-control

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: login as user from admin panel

Post by aimeos » 15 Dec 2017, 08:40

It uses an alternative authorization package for permission handling. You can use that as well in your own application because it's based on the Laravel standard auth system. You only have to define an alternative gate function instead of using the Aimeos one: https://github.com/aimeos/aimeos-laravel#admin
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

hihaider196
Posts: 13
Joined: 27 Dec 2018, 07:32

Re: login as user from admin panel

Post by hihaider196 » 11 Jan 2019, 10:54

hi,
I want to remove signIn from admin portal and restrict changes in admin portal for any user(once product in inserted then you can't do anything).I need it as soon as possible. Help me
Thankyou

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: login as user from admin panel

Post by aimeos » 11 Jan 2019, 11:04

If you want to limit the panels a user group is able to see, you can overwrite the configuration from the admin/jqadm/resource.php file: https://github.com/aimeos/ai-admin-jqad ... source.php

Add the settings to your ./config/shop.php in the "admin" section like:

Code: Select all

'admin => [
    'jqadm' => [
        'resource' => [
            'order' => [
                'groups' => ['super', 'admin']
            ]
        ]
    ]
]
This example removes the order panel for all users with editor privileges.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

hihaider196
Posts: 13
Joined: 27 Dec 2018, 07:32

Re: login as user from admin panel

Post by hihaider196 » 11 Jan 2019, 13:50

Hi,
Can you please tell me the name of table, storing users information and also for admin and also how can i replace my phone number with email.
Thankyou

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: login as user from admin panel

Post by aimeos » 14 Jan 2019, 13:19

All customer and administrator accounts are stored in the Laravel "users" table. Aimeos add a few more tables for delivery addresses (users_address), references to other domains (users_list) and arbitrary properties (users_property).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: login as user from admin panel

Post by aimeos » 09 Apr 2019, 19:14

You can manage the data of the users table in the Aimeos admin interface (customer panel) yourself
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply