mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Issue 2106 Mobile support for Member module fix and apply Mobile member module identity as CSS written.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10810 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bdd2b37b6c
commit
b297e9eeee
15 changed files with 212 additions and 31 deletions
|
|
@ -99,6 +99,39 @@ class memberMobile extends member
|
|||
$this->setTemplateFile('member_info_mobile');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Find user ID and password
|
||||
**/
|
||||
function dispMemberFindAccount() {
|
||||
if(Context::get('is_logged')) return $this->stop('already_logged');
|
||||
|
||||
$oMemberModel = &getModel('member');
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
Context::set('identifier', $config->identifier);
|
||||
|
||||
$this->setTemplateFile('find_member_account');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Generate a temporary password
|
||||
**/
|
||||
function dispMemberGetTempPassword() {
|
||||
if(Context::get('is_logged')) return $this->stop('already_logged');
|
||||
|
||||
$oMemberModel = &getModel('member');
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
Context::set('identifier', $config->identifier);
|
||||
|
||||
$user_id = Context::get('user_id');
|
||||
$temp_password = $_SESSION['xe_temp_password_'.$user_id];
|
||||
unset($_SESSION['xe_temp_password_'.$user_id]);
|
||||
|
||||
if(!$user_id||!$temp_password) return new Object(-1,'msg_invaild_request');
|
||||
Context::set('temp_password', $temp_password);
|
||||
|
||||
$this->setTemplateFile('find_temp_password');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Edit member profile
|
||||
**/
|
||||
|
|
@ -153,6 +186,9 @@ class memberMobile extends member
|
|||
// A message appears if the user is not logged-in
|
||||
if(!$oMemberModel->isLogged()) return $this->stop('msg_not_logged');
|
||||
|
||||
$config = $oMemberModel->getMemberConfig();
|
||||
Context::set('identifier', $config->identifier);
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
$member_srl = $logged_info->member_srl;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue