TYPO3: Check if user already exists

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
gizmo
Posts: 24
Joined: 18 Jan 2021, 20:42

TYPO3: Check if user already exists

Post by gizmo » 30 Oct 2021, 09:33

Is there a way to check if a username (email) already exists before aimeos creates a new user?

I know TYPO3 got rid of the uniqueness of the username in the database, since you can have multiple sites on TYPO3 and on each site the same username should be able to be created.

Right now if a user doesnt login and in the checkout checks the box "Create new Account", aimeos will create a second Account with the same username (email). We noticed that Aimeos then does not send a new Email with the account information, since an account already exists with that username (E-Mail Adress), but it creates an acctual second account in the database.

I'm using:
TYPO3 10.4.21
Aimeos 21.7.2
PHP 7.4
Apache Webserver

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

Re: TYPO3: Check if user already exists

Post by aimeos » 01 Nov 2021, 11:29

Aimeos does already try to find out if there's a user with the same e-mail address before creating a new user record:
https://github.com/aimeos/ai-client-htm ... d.php#L225

Do you use account names instead of the e-mail address in the "username" column?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply