Changeset 808 for trunk/register.php


Ignore:
Timestamp:
Aug 8, 2005, 10:52:19 PM (19 years ago)
Author:
plg
Message:
  • new : external authentication in another users table. Previous users table is divided between users (common properties with any web application) and user_infos (phpwebgallery specific informations). External table and fields can be configured.
  • modification : profile.php is not reachable through administration anymore (not useful).
  • modification : in profile.php, current password is mandatory only if user tries to change his password. Username can't be changed.
  • deletion : of obsolete functions get_user_restrictions, update_user_restrictions, get_user_all_restrictions, is_user_allowed, update_user
  • modification : user_forbidden table becomes user_cache so that not only restriction informations can be stored in this table.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/register.php

    r740 r808  
    3333if (isset($_POST['submit']))
    3434{
    35   $errors = register_user($_POST['login'], $_POST['password'],
    36                           $_POST['password_conf'], $_POST['mail_address']);
     35  if ($_POST['password'] != $_POST['password_conf'])
     36  {
     37    array_push($errors, $lang['reg_err_pass']);
     38  }
     39 
     40  $errors =
     41    array_merge(
     42      $errors,
     43      register_user($_POST['login'],
     44                    $_POST['password'],
     45                    $_POST['mail_address'])
     46      );
     47 
    3748  if (count($errors) == 0)
    3849  {
Note: See TracChangeset for help on using the changeset viewer.