aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-06 11:00:57 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-06-06 11:00:57 +0000
commit083ec53cd2ee73b8689a018defdebb8dbe21283a (patch)
tree78168b3356606202ec36af09aeefdc40df43a7e1 /actions
parent0ee5aeddcb8fd223418c8d0a5afc3df8287201a8 (diff)
downloadelgg-083ec53cd2ee73b8689a018defdebb8dbe21283a.tar.gz
elgg-083ec53cd2ee73b8689a018defdebb8dbe21283a.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Blank passwords and blank second password no longer permitted git-svn-id: https://code.elgg.org/elgg/trunk@819 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions')
-rw-r--r--actions/register.php8
1 files changed, 7 insertions, 1 deletions
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"));