Page 1 of 1
login user mbshop_customer code
Posted: 03 Feb 2016, 09:06
by obayesshelton
Hi,
How can I login using the mbshop_customer code (User Name) rather than the email address?
Thanks
Re: login user mbshop_customer code
Posted: 03 Feb 2016, 15:35
by aimeos
In Laravel applications, the "mshop_customer" table isn't used. Instead, the "users" table provided by Laravel stores all customer details. Please have a look at the Laravel documentation if it's possible what you are looking for.
Re: login user mbshop_customer code
Posted: 10 Feb 2016, 10:43
by obayesshelton
Hi,
Do I need to change something in the config to use the laravel users table? When I create a user it gets's put into the mshop_customer table?
It's the same as auth if I'm using the laravel users table it won't log in as the username and password is inside mshop_customer
I noticed this issue a few months ago now.
Re: login user mbshop_customer code
Posted: 10 Feb 2016, 12:45
by obayesshelton
Even with "aimeos/aimeos-laravel": "~2016.01" I still get the same issue...
Is there anything I need to change in my code to get the customers storing in the users table?
Re: login user mbshop_customer code
Posted: 10 Feb 2016, 15:14
by aimeos
I think, you are missing some configuration in "./config/shop.php".
For 2016.x:
Code: Select all
'mshop' => array(
'customer' => array(
'manager' => array(
'name' => 'Laravel',
'password' => array(
'name' => 'Bcrypt',
),
),
),
For 2015.x:
Code: Select all
'classes' => array(
'customer' => array(
'manager' => array(
'name' => 'Laravel',
),
),
),
'mshop' => array(
'customer' => array(
'manager' => array(
'password' => array(
'name' => 'Bcrypt',
),
),
),
),
Re: login user mbshop_customer code
Posted: 11 Feb 2016, 11:59
by obayesshelton
Hi,
This worked perfectly, I was using the config from 2016 but I had 2015 installed.
thanks