aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-04 22:23:53 -0700
committerfriendica <info@friendica.com>2013-09-04 22:23:53 -0700
commita88437a1ef75c688e36788c70e53c02e873e9740 (patch)
treeba15226bb4d6d7fc01583431dbbfa2264c1a5f04 /mod
parent99ea251b12f9bf361daf8abd96f6b3fab7023aa7 (diff)
downloadvolse-hubzilla-a88437a1ef75c688e36788c70e53c02e873e9740.tar.gz
volse-hubzilla-a88437a1ef75c688e36788c70e53c02e873e9740.tar.bz2
volse-hubzilla-a88437a1ef75c688e36788c70e53c02e873e9740.zip
issue #107
Diffstat (limited to 'mod')
-rw-r--r--mod/register.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/register.php b/mod/register.php
index 3ba714c74..bc1603f25 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -64,6 +64,12 @@ function register_post(&$a) {
break;
}
+
+ if((! $_POST['password']) || ($_POST['password'] !== $_POST['password2'])) {
+ notice( t('Passwords do not match.') . EOL);
+ return;
+ }
+
$arr = $_POST;
$arr['account_flags'] = $flags;