Commit ae8d6299 authored by 张育槟's avatar 张育槟

优化保存功能

parent b5bf9ece
......@@ -200,7 +200,6 @@ class LdapController extends Controller
$user=$this->provider->search()->find($key);
if ($user->exists) {
// $user->rename("cn=$value");
// $user->setDn("cn={$value},{$dept_name},ou=Users_hoto,dc=hoto,dc=test"); //在IT发展部新增人员
//邮箱
if(!empty($company_email)) {
$user->setAttribute('mail', $company_email);
......@@ -230,7 +229,7 @@ class LdapController extends Controller
// There was an issue updating this user.
Log::info("{$key} edit fail....");
}
$user->setDn("cn={$value},{$dept_name},ou=Users_hoto,dc=hoto,dc=test"); //在IT发展部新增人员
}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