# After upgrade username validation failed

**URL:** <https://meta.discourse.org/t/after-upgrade-username-validation-failed/35329>\
**Category:** Support\
**Created:** [2015年十一月7日 10:47 UTC](https://meta.discourse.org/t/after-upgrade-username-validation-failed/35329 "2015-11-07T10:47:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![spinodal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spinodal/32/115223_2.png) [@spinodal](https://meta.discourse.org/u/spinodal)\
**Post date:** [2015年十一月7日 10:47 UTC](https://meta.discourse.org/t/after-upgrade-username-validation-failed/35329/1 "2015-11-07T10:47:32Z")

</div>

After I upgraded my forum to 1.5 (1.5.0.beta2) one of the users started to have problem logging in. When he tries to login he sees “unknown error” but I found the error in the logs.

> RecordInvalid (Validation failed: Username must not contain a sequence of 2 or more special chars (.-\_))

(His/her username is “4\_\_”)

Is there a solution for this issue?

Thanks

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年十一月7日 10:49 UTC](https://meta.discourse.org/t/after-upgrade-username-validation-failed/35329/2 "2015-11-07T10:49:28Z")

</div>

Change his/her username?

---

<div class="post-metadata">

**Author:** ![spinodal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spinodal/32/115223_2.png) [@spinodal](https://meta.discourse.org/u/spinodal)\
**Post date:** [2015年十一月7日 11:10 UTC](https://meta.discourse.org/t/after-upgrade-username-validation-failed/35329/3 "2015-11-07T11:10:05Z")

</div>

I remember reading about not to change usernames in this meta forum, but I can try.

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年十一月7日 14:29 UTC](https://meta.discourse.org/t/after-upgrade-username-validation-failed/35329/4 "2015-11-07T14:29:16Z")

</div>

Yeah, changing your username is not something you should do often, but here it will allow your user to login. Which is kind of important 😉

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年十月12日 13:49 UTC](https://meta.discourse.org/t/after-upgrade-username-validation-failed/35329/5 "2021-10-12T13:49:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
