mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
added a checked password page when information of member before modify.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11099 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
103fe3a2c0
commit
4f984d4f91
6 changed files with 130 additions and 8 deletions
|
|
@ -360,6 +360,48 @@
|
|||
$this->setRedirectUrl($returnUrl);
|
||||
}
|
||||
|
||||
|
||||
function procMemberModifyInfoBefore()
|
||||
{
|
||||
if(!$_SESSION['rechecked_password_step'])
|
||||
{
|
||||
return $this->stop('msg_invalid_request');
|
||||
}
|
||||
|
||||
if(!Context::get('is_logged'))
|
||||
{
|
||||
return $this->stop('msg_not_logged');
|
||||
}
|
||||
|
||||
$password = Context::get('password');
|
||||
|
||||
if(!$password)
|
||||
{
|
||||
return $this->stop('msg_invalid_request');
|
||||
}
|
||||
|
||||
$oMemberModel = &getModel('member');
|
||||
|
||||
if(!$this->memberInfo->password)
|
||||
{
|
||||
$columnList = array('member_srl', 'password');
|
||||
$memberInfo = $oMemberModel->getMemberInfoByMemberSrl($member_srl, 0, $columnList);
|
||||
$this->memberInfo->password = $memberInfo->password;
|
||||
}
|
||||
// Verify the cuttent password
|
||||
if(!$oMemberModel->isValidPassword($this->memberInfo->password, $password))
|
||||
{
|
||||
return new Object(-1, 'invalid_password');
|
||||
}
|
||||
|
||||
$_SESSION['rechecked_password'] = TRUE;
|
||||
$_SESSION['rechecked_password_step'] = FALSE;
|
||||
|
||||
$redirectUrl = getUrl('', 'act', 'dispMemberModifyInfo');
|
||||
$this->setRedirectUrl($redirectUrl);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Edit member profile
|
||||
*
|
||||
|
|
@ -403,9 +445,7 @@
|
|||
// Add extra vars after excluding necessary information from all the requested arguments
|
||||
$extra_vars = delObjectVars($all_args, $args);
|
||||
$args->extra_vars = serialize($extra_vars);
|
||||
// Create a member model object
|
||||
$oMemberModel = &getModel('member');
|
||||
|
||||
|
||||
// remove whitespace
|
||||
$checkInfos = array('user_id', 'nick_name', 'email_address');
|
||||
$replaceStr = array("\r\n", "\r", "\n", " ", "\t", "\xC2\xAD");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue