login user mbshop_customer code

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!
obayesshelton
Posts: 21
Joined: 12 Oct 2015, 12:31

login user mbshop_customer code

Post by obayesshelton » 03 Feb 2016, 09:06

Hi,

How can I login using the mbshop_customer code (User Name) rather than the email address?

Thanks

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

Re: login user mbshop_customer code

Post by aimeos » 03 Feb 2016, 15:35

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

obayesshelton
Posts: 21
Joined: 12 Oct 2015, 12:31

Re: login user mbshop_customer code

Post by obayesshelton » 10 Feb 2016, 10:43

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.

obayesshelton
Posts: 21
Joined: 12 Oct 2015, 12:31

Re: login user mbshop_customer code

Post by obayesshelton » 10 Feb 2016, 12:45

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?

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

Re: login user mbshop_customer code

Post by aimeos » 10 Feb 2016, 15:14

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',
				),
			),
		),
	),
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

obayesshelton
Posts: 21
Joined: 12 Oct 2015, 12:31

Re: login user mbshop_customer code

Post by obayesshelton » 11 Feb 2016, 11:59

Hi,

This worked perfectly, I was using the config from 2016 but I had 2015 installed.

thanks :)

Post Reply