Changeset 20514


Ignore:
Timestamp:
Feb 1, 2013, 10:37:38 PM (12 years ago)
Author:
Eric
Message:

Bug 2829 fixed - Users add manually by admins are considered as valid by default. Admins or users don't have to validated the registration.

Location:
extensions/UserAdvManager/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserAdvManager/trunk/changelog.txt.php

    r19953 r20514  
    367367-- 2.41.3 : Bug 2818 fixed - "Reject user's connexion until registration is confirmed" should not reject admins connections
    368368            Update it_IT, thanks to : Ericnet
     369
     370-- 2.41.4 : Bug 2829 fixed - Users add manually by admins are considered as valid by default. Admins or users don't have to validated the registration.
     371
    369372*/
    370373?>
  • extensions/UserAdvManager/trunk/include/functions.inc.php

    r19953 r20514  
    137137    $passwd = (isset($_POST['password'])) ? $_POST['password'] : '';
    138138
     139    // No validation needed when admins add users - users are considered as valid by default
     140    // -------------------------------------------------------------------------------------
     141    if (isset($page['page']) and ($page['page'] != 'user_list'))
     142    {
    139143    if (isset($conf_UAM[1]) and $conf_UAM[1] == 'local')
    140144    {
     
    168172      }
    169173    }
     174  }
    170175  }
    171176}
     
    20012006    if ( $conf['guest_access'] )
    20022007    {
    2003       return( get_absolute_root_url().'?key='.$Confirm_Mail_ID.'&userid='.$user_id);
     2008      return(get_absolute_root_url().'?key='.$Confirm_Mail_ID.'&userid='.$user_id);
    20042009    }
    20052010    else
    20062011    {
    2007       return( get_absolute_root_url().'identification.php?key='.$Confirm_Mail_ID.'&userid='.$user_id);
     2012      return(get_absolute_root_url().'identification.php?key='.$Confirm_Mail_ID.'&userid='.$user_id);
    20082013    }
    20092014  }
     
    21112116    if ( $conf['guest_access'] )
    21122117    {
    2113       return( get_absolute_root_url().'?key='.$Confirm_Mail_ID.'&userid='.$user_id);
     2118      return(get_absolute_root_url().'?key='.$Confirm_Mail_ID.'&userid='.$user_id);
    21142119    }
    21152120    else
    21162121    {
    2117       return( get_absolute_root_url().'identification.php?key='.$Confirm_Mail_ID.'&userid='.$user_id);
     2122      return(get_absolute_root_url().'identification.php?key='.$Confirm_Mail_ID.'&userid='.$user_id);
    21182123    }
    21192124  }
Note: See TracChangeset for help on using the changeset viewer.