<p>After disabling my password manager, LastPass, my email address stopped sneaking into the username field. Upon closer inspection, here's what was happening:</p>

<p>After filling out the new user form and clicking 'Save,' you are prompted for your password. <strong>THIS</strong> is where LastPass misbehaves, or more accurately, does what it's designed to do but not very helpfully. It not only fills the password input, but replaces the contents of the 'Username' field with <em>your</em> email address (that is, the email address associated with the login stored in LastPass). It's easy to miss this, however, with the transluscent white overlay.
<img src="https://monosnap.com/file/PrADrCO9SEVyDnEXtCaMpddkL6mSQQ.png" alt="Craft password dialog - LastPass inserts wrong email address"></p>

<h2>Solution</h2>

<p>Configuring LastPass to not fill forms on the new user page isn't helpful, as you likely want it to enter your password when prompted. The best solution I could come up with is to clone my Craft login, delete the email address / username, and add 'New User' to the label. Now when prompted for the password I can select <em>that</em> login and avoid overwriting the new user's email address.</p>

CC BY-SA 3.0
2016-09-29T17:19:27.123Z
Oh man... that's sneaky.  Thanks for posting in case someone else runs into it.
Brad Bell
CC BY-SA 3.0
2016-10-01T17:42:37.727Z
Also just to note - this same thing happens with the 1Password browser extension as well. Has caught me out a few times...
michaelroper
CC BY-SA 3.0
2016-09-29T14:41:07.477Z
2016-09-29T14:41:07.477Z
Todd Prouty
<p><em>I already have a solution for this but am writing it up in case others run into the same issue.</em></p>

<p>After creating a new user, <em>my</em> email address was showing up as the username of the new user. (This site uses email addresses as the username; <code>useEmailAsUsername</code> is set to true in config/general.php.) Here's how it looked in the user list:</p>

<p><img src="https://monosnap.com/file/3IhesgfS95FQmQPP3OQ2FCw65uHQAN.png" alt="Admin email showing up as new user username"></p>

<p>It also showed up on the user page: </p>

<p><img src="https://monosnap.com/file/JgoxLd9AkR0MaX462K0jrickQIc8sK.png" alt="User card"></p>

<p>I thought I might have stumbled on a bug related to <code>useEmailAsUsername</code>. Silly me. Craft support (hi, Brad) wasn't able to reproduce it and suggested it might be an auto-fill browser extension misbehaving. Sure enough…</p>

<users><control-panel>
LastPass causing incorrect email address to be saved in new user form
# LastPass causing incorrect email address to be saved in new user form

(Asked by: username_0 on 2016-09-29)

*I already have a solution for this but am writing it up in case others run into the same issue.*

After creating a new user, *my* email address was showing up as the username of the new user. (This site uses email addresses as the username; `useEmailAsUsername` is set to true in config/general.php.) Here's how it looked in the user list:

![Admin email showing up as new user username](https://monosnap.com/file/3IhesgfS95FQmQPP3OQ2FCw65uHQAN.png)

It also showed up on the user page:

![User card](https://monosnap.com/file/JgoxLd9AkR0MaX462K0jrickQIc8sK.png)

I thought I might have stumbled on a bug related to `useEmailAsUsername`. Silly me. Craft support (hi, Brad) wasn't able to reproduce it and suggested it might be an auto-fill browser extension misbehaving. Sure enough…

**Tags:** users, control-panel


---

## 1 answers

### Answer by username_0 on 2016-09-29. Score: 2 | Accepted answer

After disabling my password manager, LastPass, my email address stopped sneaking into the username field. Upon closer inspection, here's what was happening:

After filling out the new user form and clicking 'Save,' you are prompted for your password. **THIS** is where LastPass misbehaves, or more accurately, does what it's designed to do but not very helpfully. It not only fills the password input, but replaces the contents of the 'Username' field with *your* email address (that is, the email address associated with the login stored in LastPass). It's easy to miss this, however, with the transluscent white overlay.
![Craft password dialog - LastPass inserts wrong email address](https://monosnap.com/file/PrADrCO9SEVyDnEXtCaMpddkL6mSQQ.png)

## Solution

Configuring LastPass to not fill forms on the new user page isn't helpful, as you likely want it to enter your password when prompted. The best solution I could come up with is to clone my Craft login, delete the email address / username, and add 'New User' to the label. Now when prompted for the password I can select *that* login and avoid overwriting the new user's email address.

> **Comments:**
> **username_1**: Oh man... that's sneaky.  Thanks for posting in case someone else runs into it.  
> **username_2**: Also just to note - this same thing happens with the 1Password browser extension as well. Has caught me out a few times...  

---

