Remove valid username check from client

This commit is contained in:
Dan Stillman 2009-06-04 00:58:50 +00:00
parent f681730e75
commit 57fe6361d1

View file

@ -846,9 +846,6 @@ Zotero.Sync.Server = new function () {
if (!username) {
_error("Username not set in Zotero.Sync.Server.login()");
}
else if (!username.match(/^[\w\d\. \-\_]+$/)) {
_error("Invalid username '" + username + "' in Zotero.Sync.Server.login()");
}
username = encodeURIComponent(Zotero.Sync.Server.username);
var password = encodeURIComponent(Zotero.Sync.Server.password);