Fix to change password

This commit is contained in:
skeeter 2001-03-22 01:17:34 +00:00
parent 649078db4a
commit 7059637ad3

View File

@ -188,10 +188,10 @@
$account = CreateObject('phpgwapi.accounts',$_userData['account_id']); $account = CreateObject('phpgwapi.accounts',$_userData['account_id']);
$account->update_data($_userData); $account->update_data($_userData);
$account->save_repository(); $account->save_repository();
if ($_userData['passwd']) if ($_userData['account_passwd'])
{ {
$auth = CreateObject('phpgwapi.auth'); $auth = CreateObject('phpgwapi.auth');
$auth->change_password($old_passwd, $_userData['passwd'], $_userData['account_id']); $auth->change_password($old_passwd, $_userData['account_passwd'], $_userData['account_id']);
} }
$apps = CreateObject('phpgwapi.applications',array(intval($_userData['account_id']),'u')); $apps = CreateObject('phpgwapi.applications',array(intval($_userData['account_id']),'u'));