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.

This commit is contained in:
kenperl 2006-02-21 01:03:35 +00:00
parent 7b15e606c6
commit 9c63291d96

View file

@ -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}) {