diff --git a/module/user/lang/en.php b/module/user/lang/en.php index f11c3e0a0a..ca47dd68ea 100644 --- a/module/user/lang/en.php +++ b/module/user/lang/en.php @@ -146,7 +146,6 @@ $lang->user->error->accountDupl = "ID %s,account has been used."; $lang->user->error->realname = "ID %s,must be real name"; $lang->user->error->password = "ID %s,password must be 6 characters at least."; $lang->user->error->mail = "ID %s,please enter valid Email address"; -$lang->user->error->role = "ID %s,role cannot be null."; $lang->user->error->reserved = "ID %s,account is reserved."; $lang->user->error->verifyPassword = "Verification failed. Please enter your Login Password."; diff --git a/module/user/lang/zh-cn.php b/module/user/lang/zh-cn.php index e544e77bf8..77be8eb808 100644 --- a/module/user/lang/zh-cn.php +++ b/module/user/lang/zh-cn.php @@ -146,7 +146,6 @@ $lang->user->error->accountDupl = "【ID %s】的用户名已经存在"; $lang->user->error->realname = "【ID %s】的真实姓名必须填写"; $lang->user->error->password = "【ID %s】的密码必须为六位以上"; $lang->user->error->mail = "【ID %s】的邮箱地址不正确"; -$lang->user->error->role = "【ID %s】的职位不能为空"; $lang->user->error->reserved = "【ID %s】的用户名已被系统预留"; $lang->user->error->verifyPassword = "验证失败,请检查您的系统登录密码是否正确"; diff --git a/module/user/lang/zh-tw.php b/module/user/lang/zh-tw.php index 02463199e4..46b8da6f03 100644 --- a/module/user/lang/zh-tw.php +++ b/module/user/lang/zh-tw.php @@ -146,7 +146,6 @@ $lang->user->error->accountDupl = "【ID %s】的用戶名已經存在"; $lang->user->error->realname = "【ID %s】的真實姓名必須填寫"; $lang->user->error->password = "【ID %s】的密碼必須為六位以上"; $lang->user->error->mail = "【ID %s】的郵箱地址不正確"; -$lang->user->error->role = "【ID %s】的職位不能為空"; $lang->user->error->reserved = "【ID %s】的用戶名已被系統預留"; $lang->user->error->verifyPassword = "驗證失敗,請檢查您的系統登錄密碼是否正確"; diff --git a/module/user/model.php b/module/user/model.php index 6bc8284d09..692d32e4a7 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -500,7 +500,6 @@ class userModel extends model if(!validater::checkAccount($users[$id]['account'])) die(js::error(sprintf($this->lang->user->error->account, $id))); if($users[$id]['realname'] == '') die(js::error(sprintf($this->lang->user->error->realname, $id))); if($users[$id]['email'] and !validater::checkEmail($users[$id]['email'])) die(js::error(sprintf($this->lang->user->error->mail, $id))); - if(empty($users[$id]['role'])) die(js::error(sprintf($this->lang->user->error->role, $id))); $accounts[$id] = $account; $prev['dept'] = $users[$id]['dept'];