변경 파일 목록
총 1개
관리자 비밀번호 찾기 보안 강화
Manager.phpComponent/Member/변경 파일 코드
추가삭제
변경 전Manager.php
| use Component\Admin\AdminLogDAO; | |
| use Component\Admin\AdminMenu; | |
| use Component\Database\DBTableField; | |
| use Component\Member\Exception\LoginException; | |
| use Component\Member\Exception\ManagerAuthException; | |
| use Component\Member\Util\MemberUtil; | |
| if ($type == 'reset') { | |
| $managerSession['managerId'] = Request::post()->get('managerId'); | |
| } else { | |
| $managerSession = Session::get(self::SESSION_MANAGER_LOGIN); | |
| } | |
변경 후Manager.php
| use Component\Admin\AdminLogDAO; | |
| use Component\Admin\AdminMenu; | |
| use Component\Database\DBTableField; | |
| use Component\Godo\MyGodoSmsServerApi; | |
| use Component\Member\Exception\LoginException; | |
| use Component\Member\Exception\ManagerAuthException; | |
| use Component\Member\Util\MemberUtil; | |
| if ($type == 'reset') { | |
| $managerSession['managerId'] = Request::post()->get('managerId'); | |
| if (!MyGodoSmsServerApi::getAuth()) { | |
| throw new Exception(__('인증을 다시 시도해 주시기 바랍니다.')); | |
| } | |
| if (!$this->compareManagerId($managerSession['managerId'])) { | |
| throw new Exception(__('운영자 아이디가 일치하지 않습니다. 확인 후 다시 입력해주세요.')); | |
| } | |
| } else { | |
| $managerSession = Session::get(self::SESSION_MANAGER_LOGIN); | |
| } | |