setting $session->user now changes the id for the session as it should
continued adding ad management system added field sets to htmlform and tab form
This commit is contained in:
parent
f9b8582426
commit
ae8f3d87f6
13 changed files with 565 additions and 14 deletions
|
|
@ -223,17 +223,12 @@ sub www_editProfileSave {
|
|||
my $session = shift;
|
||||
my ($profile, $fieldName, $error, $u, $warning);
|
||||
return WebGUI::Operation::Auth::www_auth($session, "init") if ($session->user->userId eq '1');
|
||||
|
||||
($profile, $error, $warning) = validateProfileData($session);
|
||||
$error .= $warning;
|
||||
|
||||
return www_editProfile('<ul>'.$error.'</ul>') if($error ne "");
|
||||
|
||||
$u = WebGUI::User->new($session,$session->user->userId);
|
||||
foreach $fieldName (keys %{$profile}) {
|
||||
$u->profileField($fieldName,$profile->{$fieldName});
|
||||
$session->user->profileField($fieldName,$profile->{$fieldName});
|
||||
}
|
||||
$session->user({user=>$u});
|
||||
return WebGUI::Operation::Auth::www_auth($session);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue