mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
#188 member::procMemberLogin() 에서 remember_user_id 값이 Y가 아닐 경우 쿠키변수중 user_id 를 무조건 지우도록 하여 기능 동작하도록 수정.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2666 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
edc45fb626
commit
83291f0725
3 changed files with 6 additions and 9 deletions
|
|
@ -16,7 +16,7 @@
|
|||
/**
|
||||
* @brief user_id, password를 체크하여 로그인 시킴
|
||||
**/
|
||||
function procMemberLogin() {
|
||||
function procMemberLogin($user_id = null, $password = null, $remember_user_id = null) {
|
||||
// 변수 정리
|
||||
if(!$user_id) $user_id = Context::get('user_id');
|
||||
$user_id = trim($user_id);
|
||||
|
|
@ -24,6 +24,9 @@
|
|||
if(!$password) $password = Context::get('password');
|
||||
$password = trim($password);
|
||||
|
||||
if($remember_user_id) $remember_user_id = Context::get('remember_user_id');
|
||||
if($remember_user_id != 'Y') setcookie('user_id','');
|
||||
|
||||
// 아이디나 비밀번호가 없을때 오류 return
|
||||
if(!$user_id) return new Object(-1,'null_user_id');
|
||||
if(!$password) return new Object(-1,'null_password');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue