Ignore:
Timestamp:
Sep 14, 2014, 8:26:20 PM (10 years ago)
Author:
chronos
Message:
  • Modified: PhoneNumber converted from User table columnt to generic Contacts table.
  • Fixed: Removed ICQ and PhoneNumber fields from user registration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/User.php

    r668 r693  
    127127  }
    128128
    129   function Register($Login, $Password, $Password2, $Email, $Name, $PhoneNumber, $ICQ)
     129  function Register($Login, $Password, $Password2, $Email, $Name)
    130130  {
    131131    if(($Email == '') || ($Login == '') || ($Password == '') || ($Password2 == '')  || ($Name == '')) $Result = DATA_MISSING;
     
    151151              'Password' => $PasswordHash->Hash($Password, $Salt), 'Salt' => $Salt,
    152152              'Email' => $Email, 'RegistrationTime' => 'NOW()',
    153               'Locked' => 1, 'PhoneNumber' => $PhoneNumber, 'ICQ' => $ICQ));
     153              'Locked' => 1));
    154154            $UserId = $this->Database->insert_id;
    155155            $this->Database->insert('PermissionUserAssignment', array('User' => $UserId,
     
    460460  `RegistrationTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
    461461  `Locked` tinyint(1) NOT NULL DEFAULT '0',
    462   `ICQ` int(11) NOT NULL DEFAULT '0',
    463   `PhoneNumber` varchar(32) NOT NULL DEFAULT '',
    464462  `InitPassword` varchar(255) NOT NULL,
    465463  PRIMARY KEY (`Id`),
     
    571569        'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''),
    572570        'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
    573         'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),
    574571      ),
    575572    ));
     
    584581        'Name' => array('Type' => 'String', 'Caption' => 'Zobrazované jméno', 'Default' => ''),
    585582        'Email' => array('Type' => 'String', 'Caption' => 'E-mail', 'Default' => ''),
    586         'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefón', 'Default' => ''),
    587         'ICQ' => array('Type' => 'String', 'Caption' => 'ICQ', 'Default' => ''),
    588583      ),
    589584    ));
     
    619614        'RegistrationTime' => array('Type' => 'DateTime', 'Caption' => 'Čas registrace', 'Default' => ''),
    620615        'Locked' => array('Type' => 'Boolean', 'Caption' => 'Uzamčen', 'Default' => ''),
    621         'PhoneNumber' => array('Type' => 'String', 'Caption' => 'Telefon', 'Default' => ''),
    622616        'UserRel' => array('Type' => 'TUserCustomerRelListUser', 'Caption' => 'Přístup k zákazníkům', 'Default' => ''),
    623617        'Permission' => array('Type' => 'TPermissionUserAssignmentListUser', 'Caption' => 'Oprávnění', 'Default' => ''),
Note: See TracChangeset for help on using the changeset viewer.