aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexanders@b2ef00c0-3703-41da-baef-cfe82387ac0c <none@none>2010-02-03 12:05:44 +0000
committeralexanders@b2ef00c0-3703-41da-baef-cfe82387ac0c <none@none>2010-02-03 12:05:44 +0000
commitcbe5e22bae15b860454bcb8abd261182d4954ec5 (patch)
tree2d86c18d37d2523bcd80806dfa1cc70f9891a0d9
parent1243345dd9baf95349544e29468daef7b301255c (diff)
downloadetherpad-cbe5e22bae15b860454bcb8abd261182d4954ec5.tar.gz
etherpad-cbe5e22bae15b860454bcb8abd261182d4954ec5.tar.xz
etherpad-cbe5e22bae15b860454bcb8abd261182d4954ec5.zip
allow only fu-berlin.de emails to register a subdomain
--HG-- extra : convert_revision : svn%3Ab2ef00c0-3703-41da-baef-cfe82387ac0c/trunk%4024
-rw-r--r--etherpad/src/etherpad/control/pro_signup_control.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/etherpad/src/etherpad/control/pro_signup_control.js b/etherpad/src/etherpad/control/pro_signup_control.js
index 9729d75..6bf7cc3 100644
--- a/etherpad/src/etherpad/control/pro_signup_control.js
+++ b/etherpad/src/etherpad/control/pro_signup_control.js
@@ -134,6 +134,8 @@ function render_main_post() {
_err(pro_accounts.validateFullName(fullName));
_err(pro_accounts.validateEmail(email));
+
+ if (!(email.match(/[Ff][Uu]-[Bb][Ee][Rr][Ll][Ii][Nn].[Dd][Ee]$/))) { _err("Please use your *.fu-berlin.de email address."); }
// _err(pro_accounts.validatePassword(password));
//---- database validation ----