From cbe5e22bae15b860454bcb8abd261182d4954ec5 Mon Sep 17 00:00:00 2001 From: "alexanders@b2ef00c0-3703-41da-baef-cfe82387ac0c" Date: Wed, 3 Feb 2010 12:05:44 +0000 Subject: allow only fu-berlin.de emails to register a subdomain --HG-- extra : convert_revision : svn%3Ab2ef00c0-3703-41da-baef-cfe82387ac0c/trunk%4024 --- etherpad/src/etherpad/control/pro_signup_control.js | 2 ++ 1 file changed, 2 insertions(+) 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 ---- -- cgit v1.2.3