From 086848c53ec080ee0fcd3d795f6728d39e707640 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 12 Nov 2015 10:40:02 +0800 Subject: [PATCH] * code task #2404. --- module/company/view/browse.html.php | 2 +- module/sso/model.php | 8 ++++---- module/user/lang/en.php | 2 +- module/user/lang/zh-cn.php | 2 +- module/user/lang/zh-tw.php | 2 +- module/user/model.php | 2 +- module/user/view/profile.html.php | 6 +++--- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/module/company/view/browse.html.php b/module/company/view/browse.html.php index 1a9550751f..d1dbffb34b 100644 --- a/module/company/view/browse.html.php +++ b/module/company/view/browse.html.php @@ -87,7 +87,7 @@ js::set('confirmDelete', $lang->user->confirmDelete); { common::printIcon('user', 'unlock', "userID=$user->account", '', 'list', '', "hiddenwin"); } - if($user->bindRanzhi) common::printIcon('user', 'unbind', "userID=$user->account", '', 'list', 'unlink', "hiddenwin"); + if($user->ranzhi) common::printIcon('user', 'unbind', "userID=$user->account", '', 'list', 'unlink', "hiddenwin"); ?> diff --git a/module/sso/model.php b/module/sso/model.php index d34a334f8b..fd53fd52da 100644 --- a/module/sso/model.php +++ b/module/sso/model.php @@ -23,7 +23,7 @@ class ssoModel extends model */ public function getBindUser($user) { - return $this->dao->select('*')->from(TABLE_USER)->where('bindRanzhi')->eq($user)->andWhere('deleted')->eq('0')->fetch(); + return $this->dao->select('*')->from(TABLE_USER)->where('ranzhi')->eq($user)->andWhere('deleted')->eq('0')->fetch(); } /** @@ -52,8 +52,8 @@ class ssoModel extends model $password = md5($data->bindPassword); $user = $this->dao->select('*')->from(TABLE_USER)->where('account')->eq($data->bindUser)->andWhere('password')->eq($password)->andWhere('deleted')->eq('0')->fetch(); if(empty($user))die(js::alert($this->lang->sso->bindNoUser)); - $user->bindRanzhi = $this->session->ssoData->account; - $this->dao->update(TABLE_USER)->set('bindRanzhi')->eq($user->bindRanzhi)->where('id')->eq($user->id)->exec(); + $user->ranzhi = $this->session->ssoData->account; + $this->dao->update(TABLE_USER)->set('ranzhi')->eq($user->ranzhi)->where('id')->eq($user->id)->exec(); } elseif($data->bindType == 'add') { @@ -73,7 +73,7 @@ class ssoModel extends model $user->realname = $data->realname; $user->gender = isset($data->gender) ? $data->gender : ''; $user->email = $data->email; - $user->bindRanzhi = $this->session->ssoData->account; + $user->ranzhi = $this->session->ssoData->account; $this->dao->insert(TABLE_USER)->data($user) ->autoCheck() diff --git a/module/user/lang/en.php b/module/user/lang/en.php index 7688c9b4ca..837df50f5e 100644 --- a/module/user/lang/en.php +++ b/module/user/lang/en.php @@ -42,7 +42,7 @@ $lang->user->join = 'Join date'; $lang->user->visits = 'Visits'; $lang->user->ip = 'Last IP'; $lang->user->last = 'Last login'; -$lang->user->bindRanzhi = 'Ranzhi account'; +$lang->user->ranzhi = 'Ranzhi account'; $lang->user->status = 'Status'; $lang->user->ditto = 'Ditto'; $lang->user->originalPassword = 'Original password'; diff --git a/module/user/lang/zh-cn.php b/module/user/lang/zh-cn.php index cec7ca6e60..177fff3c72 100644 --- a/module/user/lang/zh-cn.php +++ b/module/user/lang/zh-cn.php @@ -42,7 +42,7 @@ $lang->user->join = '入职日期'; $lang->user->visits = '访问次数'; $lang->user->ip = '最后IP'; $lang->user->last = '最后登录'; -$lang->user->bindRanzhi = '然之账号'; +$lang->user->ranzhi = '然之账号'; $lang->user->status = '状态'; $lang->user->ditto = '同上'; $lang->user->originalPassword = '原密码'; diff --git a/module/user/lang/zh-tw.php b/module/user/lang/zh-tw.php index 429fad346a..2fe2a67877 100644 --- a/module/user/lang/zh-tw.php +++ b/module/user/lang/zh-tw.php @@ -42,7 +42,7 @@ $lang->user->join = '入職時間'; $lang->user->visits = '訪問次數'; $lang->user->ip = '最後IP'; $lang->user->last = '最後登錄'; -$lang->user->bindRanzhi = '然之賬號'; +$lang->user->ranzhi = '然之賬號'; $lang->user->status = '狀態'; $lang->user->ditto = '同上'; $lang->user->originalPassword = '原密碼'; diff --git a/module/user/model.php b/module/user/model.php index 28339e9606..5db35800bf 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -790,7 +790,7 @@ class userModel extends model */ public function unbind($account) { - $this->dao->update(TABLE_USER)->set('bindRanzhi')->eq('')->where('account')->eq($account)->exec(); + $this->dao->update(TABLE_USER)->set('ranzhi')->eq('')->where('account')->eq($account)->exec(); } /** diff --git a/module/user/view/profile.html.php b/module/user/view/profile.html.php index f5a3d36626..c7c1635a70 100644 --- a/module/user/view/profile.html.php +++ b/module/user/view/profile.html.php @@ -126,10 +126,10 @@ user->zipcode;?> zipcode;?> - bindRanzhi):?> + ranzhi):?> - user->bindRanzhi;?> - bindRanzhi;?> + user->ranzhi;?> + ranzhi;?>