From 9c63291d96de357fe022d3e40a8d2e58d6ee88ec Mon Sep 17 00:00:00 2001 From: kenperl Date: Tue, 21 Feb 2006 01:03:35 +0000 Subject: [PATCH] don't need to loop all authMethods when adding a new user or editing an existing user, this will save db spaces and run less perl statements. --- lib/WebGUI/Operation/User.pm | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/lib/WebGUI/Operation/User.pm b/lib/WebGUI/Operation/User.pm index 44248764b..e4db5c86c 100644 --- a/lib/WebGUI/Operation/User.pm +++ b/lib/WebGUI/Operation/User.pm @@ -427,14 +427,9 @@ sub www_editUserSave { $u->authMethod($session->form->process("authMethod")); $u->status($session->form->process("status")); - # Loop through all of this users authentication methods - foreach (@{$session->config->get("authMethods")}) { - - # Instantiate each auth object and call it's save method. These methods are responsible for - # updating authentication information with values supplied by the www_editUser form. - my $authInstance = WebGUI::Operation::Auth::getInstance($session, $_, $actualUserId); - $authInstance->editUserFormSave(); - } + # Instantiate auth object and call it's save method. These methods are responsible for updating authentication information with values supplied by the www_editUser form. + my $authInstance = WebGUI::Operation::Auth::getInstance($session, $u->authMethod, $actualUserId); + $authInstance->editUserFormSave(); # Loop through all profile fields, and update them with new values. foreach my $field (@{WebGUI::ProfileField->new($session,'dummy')->getFields}) {