Ignore:
Timestamp:
Oct 23, 2013, 6:04:53 PM (10 years ago)
Author:
Eric
Message:

r25092 merged from trunk to branch 2.51 :
Bug 1109 fixed - Password enforcement features have been removed from UAM and set in a new dedicated plugin : Password Policy

Language files cleanup

Bug 2984 fixed - Display issue in Miscellaneous options
Bug 2986 fixed - Status for unvalidated users can not be "Guest" and is forced to "-------"
Bug 2987 fixed - New registered users have to follow a link on confirmation page before log in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/branches/2.51/maintain.inc.php

    r24212 r25093  
    3535    'MAILEXCLUSION'               => 'false',
    3636    'MAILEXCLUSION_LIST'          => '',
    37     'PASSWORDENF'                 => 'false',
    38     'PASSWORD_SCORE'              => '100',
    3937    'ADMINPASSWENF'               => 'false',
    4038    'GHOSTRACKER'                 => 'false',
     
    6159    'VALID_LEVEL'                 => '-1',
    6260    'DOWNGRADE_LEVEL'             => '-1',
    63     'PWDRESET'                    => 'false',
    6461    'REJECTCONNECT'               => 'false',
    6562    'REJECTCONNECT_TEXT'          => l10n('UAM_Default_RejectConnexion_Txt'),
     
    198195  pwg_query($q);
    199196
    200   // Piwigo's native tables modifications for password reset function - Add pwdreset column if not already exists
    201   // ------------------------------------------------------------------------------------------------------------
    202   $query = '
    203 SHOW COLUMNS FROM '.USERS_TABLE.'
    204 LIKE "UAM_pwdreset"
    205 ;';
    206  
    207   $result = pwg_query($query);
    208 
    209   if(!pwg_db_fetch_row($result))
    210   {
    211     $q = '
    212 ALTER TABLE '.USERS_TABLE.'
    213 ADD UAM_pwdreset enum("true","false")
    214 ;';
    215     pwg_query($q);
    216   }
    217197
    218198  // Piwigo's native tables modifications for validation status
     
    420400      upgrade_2500_25011();
    421401    }
     402
     403    if (version_compare($conf['UserAdvManager_Version'], '2.51.0') < 0)
     404    {
     405    /* upgrade from version 2.50.x to 2.51.0 */
     406    /* *************************************** */
     407      upgrade_2500_2510();
     408    }
    422409  }
    423410
     
    486473  $q = '
    487474ALTER TABLE '.USERS_TABLE.'
    488 DROP UAM_pwdreset
    489 ;';
    490   pwg_query($q);
    491 
    492   $q = '
    493 ALTER TABLE '.USERS_TABLE.'
    494475DROP UAM_validated
    495476;';
Note: See TracChangeset for help on using the changeset viewer.