mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +00:00
Fix wtf control flow in signup.js
(imported from commit d4cb46cda138c542884e0373b4498b4f7890ef51)
This commit is contained in:
@@ -8,7 +8,6 @@ $.validator.addMethod("fromDomain", function (value, element, param) {
|
||||
console.log(value);
|
||||
var splitted = value.split("@");
|
||||
var tld = splitted[splitted.length - 1];
|
||||
return false;
|
||||
return $.inArray(tld, tld_list) !== -1;
|
||||
},
|
||||
"Please use your company email address to sign up. Otherwise, we won’t be able to connect you with your coworkers.");
|
||||
|
||||
Reference in New Issue
Block a user