Title: Plugin Creates Multiple Accounts
Last modified: December 16, 2019

---

# Plugin Creates Multiple Accounts

 *  Resolved [madehmlow](https://wordpress.org/support/users/madehmlow/)
 * (@madehmlow)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-creates-multiple-accounts/)
 * Hi, I am using authorizer to provide authentication with and LDAP system. The
   first login works fine – the username is correct, but upon subsequent logins,
   authorizer appears to create a second account with the email appendix I specify
   and puts the email address in the username field. Any suggestions on how to stop
   this behavior. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-creates-multiple-accounts/#post-12244445)
 * Thanks, we’ll check it out. You have something like “@example.com” instead of
   an LDAP attribute in the `LDAP attribute containing email address` field, yes?
 *  Thread Starter [madehmlow](https://wordpress.org/support/users/madehmlow/)
 * (@madehmlow)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-creates-multiple-accounts/#post-12247741)
 * For us it is @sitename when LDAP doesn’t send an email value in the mail field.
 *  Plugin Author [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * (@figureone)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-creates-multiple-accounts/#post-12306599)
 * I can’t seem to isolate how this happens for you. Does anything look off about
   the usernames or email address of the duplicate accounts, like a space at the
   beginning or end? Same goes for the `LDAP attribute containing email address`
   option value.
 * Here’s where we generate the email address if `@sitename` is provided in that
   field:
    [https://github.com/uhm-coe/authorizer/blob/master/src/authorizer/class-authentication.php#L709-L714](https://github.com/uhm-coe/authorizer/blob/master/src/authorizer/class-authentication.php#L709-L714)
 * And here’s where we create a user with the email as username because authorizer
   thinks another (different) user already exists with the same username:
    [https://github.com/uhm-coe/authorizer/blob/master/src/authorizer/class-authorization.php#L200-L206](https://github.com/uhm-coe/authorizer/blob/master/src/authorizer/class-authorization.php#L200-L206)
 * It also might have something to do with case. Do either the usernames or email
   addresses have mixed case (capital and lowercase letters)?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin Creates Multiple Accounts’ is closed to new replies.

 * ![](https://ps.w.org/authorizer/assets/icon-256x256.jpg?rev=1967453)
 * [Authorizer](https://wordpress.org/plugins/authorizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/authorizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/authorizer/)
 * [Active Topics](https://wordpress.org/support/plugin/authorizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/authorizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/authorizer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Paul Ryan](https://wordpress.org/support/users/figureone/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-creates-multiple-accounts/#post-12306599)
 * Status: resolved