mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#86. mysql이용시 old_password()를 php함수에서 1차 처리후 틀리면 직접 mysql에 쿼리로 old_password()를 가져오도록 하여 문제 해결
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2368 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7c3ea0b220
commit
3a970616b1
3 changed files with 36 additions and 2 deletions
|
|
@ -188,6 +188,16 @@
|
|||
return $sequence;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief mysql old password를 가져오는 함수 (mysql에서만 사용)
|
||||
**/
|
||||
function getOldPassword($password) {
|
||||
$query = sprintf("select old_password('%s') as password", $password);
|
||||
$result = $this->_query($query);
|
||||
$tmp = $this->_fetch($result);
|
||||
return $tmp->password;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 테이블 기생성 여부 return
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -197,6 +197,16 @@
|
|||
return $sequence;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief mysql old password를 가져오는 함수 (mysql에서만 사용)
|
||||
**/
|
||||
function getOldPassword($password) {
|
||||
$query = sprintf("select old_password('%s') as password", $password);
|
||||
$result = $this->_query($query);
|
||||
$tmp = $this->_fetch($result);
|
||||
return $tmp->password;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 테이블 기생성 여부 return
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue