]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
rationalize Zach's change of length with my added _ and caps
authorEvan Prodromou <evan@controlyourself.ca>
Tue, 23 Sep 2008 17:43:02 +0000 (13:43 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 23 Sep 2008 17:43:02 +0000 (13:43 -0400)
darcs-hash:20080923174302-5ed1f-bf1e3339745eb497523912c2e58298b25ebe89d5.gz

actions/twittersettings.php

index bdb9958dee7e2aa271b4a60ee1522cdf85fc099c..058bec1b0feb2b7c4a0df21b204c5916bd0afcf5 100644 (file)
@@ -112,9 +112,9 @@ class TwittersettingsAction extends SettingsAction {
                $friendsync = $this->boolean('friendsync');
 
                if (!Validate::string($twitter_username, array('min_length' => 1,
-                                                                                          'max_length' => 64,
-                                                                                          'format' => VALIDATE_NUM . VALIDATE_ALPHA_LOWER))) {
-                       $this->show_form(_('Username must have only lowercase letters and numbers and no spaces.'));
+                                                                                                          'max_length' => 15,
+                                                                                                          'format' => VALIDATE_NUM . VALIDATE_ALPHA . '_'))) {
+                       $this->show_form(_('Username must have only numbers, upper- and lowercase letters, and underscore (_).'));
                        return;
                }