Commit 50d82e89 authored by 张育槟's avatar 张育槟

优化保存接口功能

parent bdbd976a
......@@ -223,7 +223,15 @@ class LdapController extends Controller
if(!empty($account)) {
$user->setAttribute('sAMAccountName', $account);
}
Log::info("{$key} edit success....");
if ($user->update()) {
Log::info("{$key} edit success....");
} else {
// There was an issue updating this user.
Log::info("{$key} edit fail....");
}
}else{
Log::info("{$key} not exist....");
}
......
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