From a4f7b95601e73f0a983df376051c6c344e7f06cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0git=20config=20git=20config=20-?= =?UTF-8?q?-helpgit=20config=20--global=20user=2Ename=20=EC=B5=9C=EC=A4=80?= =?UTF-8?q?=ED=9D=A0?= Date: Mon, 7 Aug 2023 21:33:49 +0900 Subject: [PATCH] shoppingmallv2 init.. --- app/Controllers/BaseController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Controllers/BaseController.php b/app/Controllers/BaseController.php index 51e322d..ba2b967 100644 --- a/app/Controllers/BaseController.php +++ b/app/Controllers/BaseController.php @@ -210,6 +210,12 @@ abstract class BaseController extends Controller foreach ($this->_viewDatas['fields'] as $field) { $this->_viewDatas['fieldDatas'] = $this->getFieldFormData($field, $entity); } + //변견된 데이터 Log로 남기기 + foreach ($this->_viewDatas['fieldDatas'] as $field => $value) { + if ($field != "passwd") { //보안위험성이 있으므로 passwd는 Log에 남기지 않는다. + log_message("info", "{$field} : {$entity->$field} => {$value} 변경"); + } + } } protected function update_process($entity) {