fixed #3
This commit is contained in:
parent
0f9834f7a0
commit
6452d7d37c
1 changed files with 1 additions and 2 deletions
|
@ -37,8 +37,7 @@ Login.prototype.authenticate = function(e) {
|
|||
|
||||
var errs = [];
|
||||
if(!server_url || server_url.indexOf("http") != 0) errs.push("add a server url that starts with http");
|
||||
if(!user) errs.push("add a username");
|
||||
if(!password) errs.push("add a password");
|
||||
if((user && !password) || (!user && password)) errs.push("add both username and password or neither");
|
||||
|
||||
if(errs.length > 0) {
|
||||
alert("Please " + errs.join(",\n") + ".");
|
||||
|
|
Reference in a new issue