# 关于最大用户名长度的问题

**URL:** <https://meta.discourse.org/t/question-about-max-username-length/80022>\
**Category:** Product Support\
**Created:** [2018 年2 月 7 日 15:18 UTC](https://meta.discourse.org/t/question-about-max-username-length/80022 "2018-02-07T15:18:08Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

作者： ![Donavan\_Martin1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/donavan_martin1/32/243280_2.png) [@Donavan\_Martin1](https://meta.discourse.org/u/Donavan_Martin1)\
发布日期： [2022 年2 月 13 日 16:14 UTC](https://meta.discourse.org/t/question-about-max-username-length/80022/14 "2022-02-13T16:14:47Z")

</div>

```plaintext
cd /var/discourse/
./launcher enter app
sed -i 's/MAX_CHARS ||= 60/MAX_CHARS ||= 255/g' app/models/username_validator.rb

```

---

_[View the full topic](https://meta.discourse.org/t/question-about-max-username-length/80022)._
