aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-10-25 19:33:57 +0000
committerflop25 <flop25@piwigo.org>2013-10-25 19:33:57 +0000
commit2a214b4593905fb27835c163001cce869785a185 (patch)
tree4a9b3bd490d369a27dd6bfb39a80a41e48f2cef9
parent150dc87ac67ce4582a9bd3e265742908ea89a078 (diff)
bug:2948 The registration can be done without typing a password
hotfix for 2.5.3 git-svn-id: http://piwigo.org/svn/branches/2.5@25149 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--register.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/register.php b/register.php
index dfc5ac487..87ef797a9 100644
--- a/register.php
+++ b/register.php
@@ -47,7 +47,7 @@ if (isset($_POST['submit']))
array_push($page['errors'], 'Invalid/expired form key');
}
- if ($_POST['password'] != $_POST['password_conf'])
+ if ($_POST['password'] != $_POST['password_conf'] or empty($_POST['password']))
{
array_push($page['errors'], l10n('please enter your password again'));
}