|
@@ -112,7 +112,6 @@ class User extends Controller
|
|
|
}
|
|
|
$oldpassword = Db::name($this->table)->where('id',$post['id'])->value('password1');
|
|
|
if (Db::name($this->table)->where('id',$post['id'])->update(['password'=>md5($post['password']),'password1'=>$post['password']])){
|
|
|
-
|
|
|
sysoplog('用户管理', '密码修改成功,ID:'.$post['id'].':'.$oldpassword.'->'.$post['password']);
|
|
|
$this->success('密码修改成功,下次请使用新密码登录!', '');
|
|
|
} else {
|
|
@@ -181,7 +180,8 @@ class User extends Controller
|
|
|
$this->error('系统超级账号禁止操作!');
|
|
|
}
|
|
|
$this->applyCsrfToken();
|
|
|
- $this->_save($this->table, ['status' => '0']);
|
|
|
+ $log = ['action'=>'用户管理','content'=>'禁用用户'];
|
|
|
+ $this->_save($this->table, ['status' => '0'],$log);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -193,7 +193,8 @@ class User extends Controller
|
|
|
public function resume()
|
|
|
{
|
|
|
$this->applyCsrfToken();
|
|
|
- $this->_save($this->table, ['status' => '1']);
|
|
|
+ $log = ['action'=>'用户管理','content'=>'启用用户'];
|
|
|
+ $this->_save($this->table, ['status' => '1'],$log);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -208,7 +209,8 @@ class User extends Controller
|
|
|
$this->error('系统超级账号禁止删除!');
|
|
|
}
|
|
|
$this->applyCsrfToken();
|
|
|
- $this->_delete($this->table);
|
|
|
+ $log = ['action'=>'用户管理'];
|
|
|
+ $this->_delete($this->table,$log);
|
|
|
}
|
|
|
|
|
|
}
|