forked from GNUsocial/gnu-social
Twitter bridge - Changed Twitter username length check from 64 chars to Twitter max of 15.
darcs-hash:20080923084145-7b5ce-25cfef64778010135234046be25294a3c7860419.gz
This commit is contained in:
parent
04b95c25ad
commit
cbd8f39f24
@ -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 . '_'))) {
|
||||
$this->show_form(_('Username must have only numbers, upper- and lowercase letters, and underscore (_).'));
|
||||
'max_length' => 64,
|
||||
'format' => VALIDATE_NUM . VALIDATE_ALPHA_LOWER))) {
|
||||
$this->show_form(_('Username must have only lowercase letters and numbers and no spaces.'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user