[Omail-admin-devel] newuser and newalias problem
Brought to you by:
swix
From: Hideto S. <hs...@ht...> - 2000-11-30 01:50:55
|
Hi, When I input already account in newuser(or newalias) form, then correctly show message "NEWUSER error : Virtual user already exists". But the account's 'INFO' is updated. Next is a patch for this problem. # diff -c index.php.original index.php *** index.php.original Sat Nov 18 01:31:10 2000 --- index.php Tue Nov 28 22:00:46 2000 *************** *** 750,762 **** if ($action == "newuser") { $results = "<br>" . create_account($U, $passwd1, $fwd); ! update_userdetail($U, $userdetail); } if ($action == "newalias") { $results = create_alias($U, $passwd1, $fwd); ! update_userdetail($U, $userdetail); } --- 750,766 ---- if ($action == "newuser") { $results = "<br>" . create_account($U, $passwd1, $fwd); ! if (strpos($results,"NEWUSER ok")) { ! update_userdetail($U, $userdetail); ! } } if ($action == "newalias") { $results = create_alias($U, $passwd1, $fwd); ! if (strpos($results,"NEWALIAS ok")) { ! update_userdetail($U, $userdetail); ! } } -- ======================================================= Hideto Sakaguchi |