Changeset 25121 for trunk/register.php


Ignore:
Timestamp:
Oct 24, 2013, 7:55:00 PM (11 years ago)
Author:
flop25
Message:

bug:2948 The registration can be done without typing a password

The password is only mandatory on the public register page
Better error messages from admin/user_list.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/register.php

    r25116 r25121  
    4848  }
    4949
    50   if ($_POST['password'] != $_POST['password_conf'])
     50  if(empty($_POST['password']))
    5151  {
    52     $page['errors'][] = l10n('please enter your password again');
     52    $page['errors'][] = l10n('Password is missing. Please enter the password.');
     53  }
     54  else if(empty($_POST['password_conf']))
     55  {
     56    $page['errors'][] = l10n('Password confirmation is missing. Please confirm the chosen password.');
     57  }
     58  else if ($_POST['password'] != $_POST['password_conf'])
     59  {
     60    $page['errors'][] = l10n('The passwords do not match');
    5361  }
    5462
Note: See TracChangeset for help on using the changeset viewer.