diff options
Diffstat (limited to '')
-rw-r--r-- | register.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/register.php b/register.php index c3c7ba73b..07b8b327a 100644 --- a/register.php +++ b/register.php @@ -32,8 +32,19 @@ include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); $errors = array(); if (isset($_POST['submit'])) { - $errors = register_user($_POST['login'], $_POST['password'], - $_POST['password_conf'], $_POST['mail_address']); + if ($_POST['password'] != $_POST['password_conf']) + { + array_push($errors, $lang['reg_err_pass']); + } + + $errors = + array_merge( + $errors, + register_user($_POST['login'], + $_POST['password'], + $_POST['mail_address']) + ); + if (count($errors) == 0) { $query = ' |