Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Not matching e-mail address even if still exists #920

Open
tcagkansokmen opened this issue Dec 22, 2021 · 1 comment
Open

Not matching e-mail address even if still exists #920

tcagkansokmen opened this issue Dec 22, 2021 · 1 comment

Comments

@tcagkansokmen
Copy link

Laravel Version: 8
Adldap2-Laravel Version: 6.1
PHP Version: 7.4

I have users table.

I'm trying to make their authentication with LDAP.
But when user login, It tries to recreate It's record if 'username' and 'objecthuid' columns are empty. But there's still a user with same e-mail address, so that singularity validation returns error "there's still a record with that email address."

I want to work with LDAP like;
"If email exist, then login and update. If not exist so create new record."

@stevebauman
Copy link
Member

Hi @tcagkansokmen,

LdapRecord supports this feature out of the box. I’d recommend moving to it:

https://ldaprecord.com/docs/laravel/v2/auth/database/configuration/#sync-existing-records

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants