Commit 11cd1c53 authored by 张育槟's avatar 张育槟

优化保存接口

parent 50d82e89
......@@ -224,7 +224,7 @@ class LdapController extends Controller
$user->setAttribute('sAMAccountName', $account);
}
if ($user->update()) {
if ($user->save()) {
Log::info("{$key} edit success....");
} else {
// There was an issue updating this user.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment