From eb4d5f4009a0443fe9e8b68eaa6ed1096a719a3c Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 22 Jul 2012 19:37:15 -0700 Subject: registration page form validation --- mod/zregister.php | 52 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 3 deletions(-) (limited to 'mod') diff --git a/mod/zregister.php b/mod/zregister.php index b683a9d85..7a8d67e78 100644 --- a/mod/zregister.php +++ b/mod/zregister.php @@ -12,9 +12,9 @@ function zregister_init(&$a) { $email = $_REQUEST['email']; if(! allowed_email($email)) - $result['message'] = t('Your email domain is not among those allowed on this site.'); + $result['message'] = t('Your email domain is not among those allowed on this site'); if((! valid_email($email)) || (! validate_email($email))) - $result['message'] .= t('Not a valid email address.') . EOL; + $result['message'] .= t('Not a valid email address') . EOL; if($result['message']) $result['error'] = true; @@ -23,8 +23,54 @@ function zregister_init(&$a) { killme(); } + $pw1 = t("Password too short"); + $pw2 = t("Passwords do not match"); - + $a->page['htmlhead'] .= <<< EOT + + +EOT; } -- cgit v1.2.3