From 083ec53cd2ee73b8689a018defdebb8dbe21283a Mon Sep 17 00:00:00 2001 From: icewing Date: Fri, 6 Jun 2008 11:00:57 +0000 Subject: Marcus Povey * Blank passwords and blank second password no longer permitted git-svn-id: https://code.elgg.org/elgg/trunk@819 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/register.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'actions/register.php') diff --git a/actions/register.php b/actions/register.php index a2f434a73..dd573aa77 100644 --- a/actions/register.php +++ b/actions/register.php @@ -19,7 +19,13 @@ $name = get_input('name'); // For now, just try and register the user - if (register_user($username, $password, $name, $email)) { + if ( + ( + (trim($password)!="") && + (strcmp($password, $password2)==0) + ) && + (register_user($username, $password, $name, $email)) + ) { system_message(sprintf(elgg_echo("registerok"),$CONFIG->sitename)); } else { system_message(elgg_echo("registerbad")); -- cgit v1.2.3