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:
parent
7b15e606c6
commit
9c63291d96
1 changed files with 3 additions and 8 deletions
|
|
@ -427,14 +427,9 @@ sub www_editUserSave {
|
||||||
$u->authMethod($session->form->process("authMethod"));
|
$u->authMethod($session->form->process("authMethod"));
|
||||||
$u->status($session->form->process("status"));
|
$u->status($session->form->process("status"));
|
||||||
|
|
||||||
# Loop through all of this users authentication methods
|
# 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.
|
||||||
foreach (@{$session->config->get("authMethods")}) {
|
my $authInstance = WebGUI::Operation::Auth::getInstance($session, $u->authMethod, $actualUserId);
|
||||||
|
$authInstance->editUserFormSave();
|
||||||
# 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();
|
|
||||||
}
|
|
||||||
|
|
||||||
# Loop through all profile fields, and update them with new values.
|
# Loop through all profile fields, and update them with new values.
|
||||||
foreach my $field (@{WebGUI::ProfileField->new($session,'dummy')->getFields}) {
|
foreach my $field (@{WebGUI::ProfileField->new($session,'dummy')->getFields}) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue