phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: admin/inc class.boaccounts.inc.php,1.22.2.3,1.22


From: Dan Kuykendall <address@hidden>
Subject: [Phpgroupware-cvs] CVS: admin/inc class.boaccounts.inc.php,1.22.2.3,1.22.2.4
Date: Wed, 01 May 2002 19:56:16 -0400

Update of /cvsroot/phpgroupware/admin/inc
In directory subversions:/tmp/cvs-serv28336/admin/inc

Modified Files:
      Tag: Version-0_9_14-branch
        class.boaccounts.inc.php 
Log Message:
updated hooks for add/delete accounts and update password

Index: class.boaccounts.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/admin/inc/class.boaccounts.inc.php,v
retrieving revision 1.22.2.3
retrieving revision 1.22.2.4
diff -C2 -r1.22.2.3 -r1.22.2.4
*** class.boaccounts.inc.php    19 Mar 2002 19:09:51 -0000      1.22.2.3
--- class.boaccounts.inc.php    1 May 2002 23:56:13 -0000       1.22.2.4
***************
*** 152,155 ****
--- 152,158 ----
                                
$GLOBALS['phpgw']->hooks->single('deleteaccount','admin');
  
+                               $GLOBALS['hook_values']['account_id'] = $lid;
+                               
$GLOBALS['phpgw']->hooks->process('deleteaccount');
+ 
                                $basedir = 
$GLOBALS['phpgw_info']['server']['files_dir'] . SEP . 'users' . SEP;
  
***************
*** 326,329 ****
--- 329,333 ----
                                        $account_id = 
$this->so->add_user($userData);
                                        $GLOBALS['hook_values']['account_id'] = 
$account_id;
+                                       $GLOBALS['hook_values']['new_passwd'] = 
$userData['account_passwd'];
                                        
$GLOBALS['phpgw']->hooks->process('addaccount');
                                        
ExecMethod('admin.uiaccounts.list_users');
***************
*** 740,743 ****
--- 744,751 ----
                                $auth = CreateObject('phpgwapi.auth');
                                $auth->change_password($old_passwd, 
$_userData['account_passwd'], $_userData['account_id']);
+                               $GLOBALS['hook_values']['account_id'] = 
$_userData['account_id'];
+                               $GLOBALS['hook_values']['old_passwd'] = 
$old_passwd;
+                               $GLOBALS['hook_values']['new_passwd'] = 
$_userData['account_passwd'];
+                               
$GLOBALS['phpgw']->hooks->process('changepassword');
                        }
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]