Browse Source

Updated minimum username length to 3.

KrisVos130 9 năm trước cách đây
mục cha
commit
392beb8d17
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      app/client/templates/faq.html
  2. 2 2
      app/database/schemas.js

+ 1 - 1
app/client/templates/faq.html

@@ -32,7 +32,7 @@
                 </li>
                 <li>
                     <div class="collapsible-header"><i class="material-icons">help</i>What are the username requirements?</div>
-                    <div class="collapsible-body"><p>Your username should contain between 6 and 26 characters. Your username can only contain letters (a-z), numbers (0-9) and underscore's (_). Your username should be appropriate. Please don't use any offensive, racist or homophobic username.</p></div>
+                    <div class="collapsible-body"><p>Your username should contain between 3 and 26 characters. Your username can only contain letters (a-z), numbers (0-9) and underscore's (_). Your username should be appropriate. Please don't use any offensive, racist or homophobic username.</p></div>
                 </li>
                 <li>
                     <div class="collapsible-header"><i class="material-icons">help</i>Can I change my username?</div>

+ 2 - 2
app/database/schemas.js

@@ -279,7 +279,7 @@ Schemas.UserProfile = new SimpleSchema({
         type: String,
         label: "Username",
         regEx: /^[a-zA-Z0-9_]+$/,
-        min: 4,
+        min: 3,
         max: 26
     },
     usernameL: {
@@ -429,7 +429,7 @@ Schemas.User = new SimpleSchema({
         // Third-party login packages may not require either. Adjust this schema as necessary for your usage.
         optional: true,
         regEx: /^[a-zA-Z0-9_]+$/,
-        min: 6,
+        min: 3,
         max: 26
     },
     emails: {