# Error while trying to change the username of an inactive account

**URL:** https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986
**Category:** Bug
**Created:** [2015年三月4日 21:10 UTC](https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986 "2015-03-04T21:10:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stefan/32/104823_2.png) [@Stefan](https://meta.discourse.org/u/Stefan)
#### Post date: [2015年三月4日 21:10 UTC](https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986/1 "2015-03-04T21:10:15Z")

</div>

As an admin, I’ve tried to change the username of an inactive account (i.e. registered but never activated) and I’ve go this in error logs:

```
Uncaught TypeError: Cannot read property 'name' of undefined
Url: http://vamist.ro/assets/vendor-6324f2f5fe44e5bec2112f4d797c1864.js
Line: 15
Column: 69 
Window Location: http://vamist.ro/users/10kerviel/preferences/username

```

For activated account I don’t have any errors.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2015年三月4日 23:12 UTC](https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986/2 "2015-03-04T23:12:09Z")

</div>

OK on the error, but why would you need to change the username of an unactivated account exactly?

---

<div class="post-metadata">

### Author: ![Stefan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stefan/32/104823_2.png) [@Stefan](https://meta.discourse.org/u/Stefan)
#### Post date: [2015年三月5日 09:38 UTC](https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986/3 "2015-03-05T09:38:04Z")

</div>

Actually I don’t. I was just playing around with some accounts taken from IP.Board and I’ve noticed the fact that the ones with space in username were not imported. So I wanted to see if the interface allows you to have spaces in usernames and that’s how I’ve noticed the issue and reported it. I don’t see myself changing usernames for inactive accounts on a regular basis.

---

<div class="post-metadata">

### Author: ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)
#### Post date: [2016年六月5日 14:30 UTC](https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986/4 "2016-06-05T14:30:40Z")

</div>

So that I can correct it before I approve them, allowing me to set a username (first initial, then surname) that will allow their full name show on their profile.

We all want to know who each other are in our boards, and they don’t know that (currently) the default username hides their full name as redundant information.

Changing it before approval means they don’t have to deal with a change later.

---

<div class="post-metadata">

### Author: ![merc](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@merc](https://meta.discourse.org/u/merc)
#### Post date: [2016年六月6日 19:00 UTC](https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986/5 "2016-06-06T19:00:50Z")

</div>

Does this bug still exist?  
I managed to successfully change the username of an inactive account and I didn’t see any errors in the logs.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2022年七月21日 05:24 UTC](https://meta.discourse.org/t/error-while-trying-to-change-the-username-of-an-inactive-account/25986/6 "2022-07-21T05:24:25Z")

</div>


