Page 1 of 1

Customer Acc Registration and Admin Login

Posted: 06 Dec 2019, 11:04
by sedersmith
Hi team,
Kindly give me step by step guide that I which customer can register and login to their account and customer can only see their details and order details.

and the second thing is I want to redirect the customer to their dashboard means if admin is login it should go to the admin dashboard and if a simple customer in login then the customer should go to their panel.

Regards,
Seder Smith

Re: Customer Acc Registration and Admin Login

Posted: 07 Dec 2019, 10:40
by aimeos
sedersmith wrote: 06 Dec 2019, 11:04 Kindly give me step by step guide that I which customer can register and login to their account and customer can only see their details and order details.
This is standard Laravel stuff:
https://laravel.com/docs/6.x/authentication

A short summary how to set up authentication (applies to admins and users) is here:
https://github.com/aimeos/aimeos-laravel#admin
sedersmith wrote: 06 Dec 2019, 11:04 and the second thing is I want to redirect the customer to their dashboard means if admin is login it should go to the admin dashboard and if a simple customer in login then the customer should go to their panel.
That's more difficult because by default, both use different URLs:
- admin: .../admin
- user: .../myaccount

You would need to create a new Laravel controller that does authentication manually and redirect to the appropriate URLs. You can use the admin controller as reference:
https://github.com/aimeos/aimeos-larave ... roller.php