diff --git a/module/my/view/changepassword.html.php b/module/my/view/changepassword.html.php
index 0c6e8cfbe8..0f19710500 100755
--- a/module/my/view/changepassword.html.php
+++ b/module/my/view/changepassword.html.php
@@ -22,8 +22,8 @@
account . html::hidden('account',$user->account);?> |
- | user->originalPwd;?> |
- |
+ user->originalPassword;?> |
+ |
| user->password;?> |
diff --git a/module/my/view/editprofile.html.php b/module/my/view/editprofile.html.php
index 7de4cb2d6b..c4580b92bb 100644
--- a/module/my/view/editprofile.html.php
+++ b/module/my/view/editprofile.html.php
@@ -102,8 +102,11 @@
diff --git a/module/user/control.php b/module/user/control.php
index 7eae13ae1c..0a0d53c4e7 100644
--- a/module/user/control.php
+++ b/module/user/control.php
@@ -538,7 +538,7 @@ class user extends control
if(strpos($this->app->company->admins, ",{$this->app->user->account},") !== false and $this->app->user->account == $user->account) return;
if($_POST)
{
- if(md5($this->post->verifyPwd) != $this->app->user->password) die(js::alert($this->lang->user->error->verifyPwd));
+ if(md5($this->post->verifyPassword) != $this->app->user->password) die(js::alert($this->lang->user->error->verifyPassword));
$this->user->delete(TABLE_USER, $userID);
/* if ajax request, send result. */
@@ -657,7 +657,7 @@ class user extends control
if($this->post->keepLogin) $this->user->keepLogin($user);
/* Check password. */
- if(isset($this->config->safe->mode) and $this->user->computePasswordStrength($password) < $this->config->safe->mode) echo js::alert($this->lang->user->weakPwd);
+ if(isset($this->config->safe->mode) and $this->user->computePasswordStrength($password) < $this->config->safe->mode) echo js::alert($this->lang->user->weakPassword);
/* Go to the referer. */
if($this->post->referer and
diff --git a/module/user/lang/en.php b/module/user/lang/en.php
index 6eb8413d86..c7e5b7040c 100644
--- a/module/user/lang/en.php
+++ b/module/user/lang/en.php
@@ -44,8 +44,8 @@ $lang->user->ip = 'Last IP';
$lang->user->last = 'Last login';
$lang->user->status = 'Status';
$lang->user->ditto = 'Ditto';
-$lang->user->originalPwd = 'Original password';
-$lang->user->verifyPwd = 'Verify password';
+$lang->user->originalPassword = 'Original password';
+$lang->user->verifyPassword = 'Enter your password';
$lang->user->index = "Index";
$lang->user->view = "Info";
@@ -102,11 +102,11 @@ $lang->user->testTask2Him = 'His task';
$lang->user->case2Him = 'His case';
$lang->user->caseByHim = 'Case he opened';
-$lang->user->errorDeny = "Sorry, you can't access the %s module's %s feature";
-$lang->user->loginFailed = "Login failed, please check your account and password.";
-$lang->user->lockWarning = "You only have %s times to try.";
-$lang->user->loginLocked = "You try the password too many times, please contact the administrator or try again after %s minutes.";
-$lang->user->weakPwd = "Your password strength is less than the system settings.";
+$lang->user->errorDeny = "Sorry, you can't access the %s module's %s feature";
+$lang->user->loginFailed = "Login failed, please check your account and password.";
+$lang->user->lockWarning = "You only have %s times to try.";
+$lang->user->loginLocked = "You try the password too many times, please contact the administrator or try again after %s minutes.";
+$lang->user->weakPassword = "Your password strength is less than the system settings.";
$lang->user->roleList[''] = '';
$lang->user->roleList['dev'] = 'Developer';
@@ -148,8 +148,9 @@ $lang->user->error->realname = "ID %s,please input realname";
$lang->user->error->password = "ID %s,password must be six letters at least";
$lang->user->error->mail = "ID %s,please input correct email address";
$lang->user->error->role = "ID %s,please input role";
-$lang->user->error->verifyPwd = "Please enter the correct password";
-$lang->user->error->originalPwd = "The original password is not correct";
+
+$lang->user->error->verifyPassword = "Password error security verification. Please enter your login password.";
+$lang->user->error->originalPassword = "The original password is not correct";
$lang->user->contacts = new stdclass();
$lang->user->contacts->common = 'Contacts';
diff --git a/module/user/lang/zh-cn.php b/module/user/lang/zh-cn.php
index 3fe02ce2ca..04157e36c5 100644
--- a/module/user/lang/zh-cn.php
+++ b/module/user/lang/zh-cn.php
@@ -44,8 +44,8 @@ $lang->user->ip = '最后IP';
$lang->user->last = '最后登录';
$lang->user->status = '状态';
$lang->user->ditto = '同上';
-$lang->user->originalPwd = '原密码';
-$lang->user->verifyPwd = '验证密码';
+$lang->user->originalPassword = '原密码';
+$lang->user->verifyPassword = '请输入你的密码';
$lang->user->index = "用户视图首页";
$lang->user->view = "用户详情";
@@ -102,11 +102,11 @@ $lang->user->testTask2Him = '他的任务';
$lang->user->case2Him = '给他的用例';
$lang->user->caseByHim = '他建的用例';
-$lang->user->errorDeny = "抱歉,您无权访问『%s』模块的『%s』功能。请联系管理员获取权限。点击后退返回上页。";
-$lang->user->loginFailed = "登录失败,请检查您的用户名或密码是否填写正确。";
-$lang->user->lockWarning = "您还有%s次尝试机会。";
-$lang->user->loginLocked = "密码尝试次数太多,请联系管理员解锁,或%s分钟后重试。";
-$lang->user->weakPwd = "您的密码强度小于系统设定。";
+$lang->user->errorDeny = "抱歉,您无权访问『%s』模块的『%s』功能。请联系管理员获取权限。点击后退返回上页。";
+$lang->user->loginFailed = "登录失败,请检查您的用户名或密码是否填写正确。";
+$lang->user->lockWarning = "您还有%s次尝试机会。";
+$lang->user->loginLocked = "密码尝试次数太多,请联系管理员解锁,或%s分钟后重试。";
+$lang->user->weakPassword = "您的密码强度小于系统设定。";
$lang->user->roleList[''] = '';
$lang->user->roleList['dev'] = '研发';
@@ -148,8 +148,9 @@ $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->verifyPwd = "请输入正确验证密码";
-$lang->user->error->originalPwd = "原密码不正确";
+
+$lang->user->error->verifyPassword = "安全验证密码错误,请输入你的登录密码";
+$lang->user->error->originalPassword = "原密码不正确";
$lang->user->contacts = new stdclass();
$lang->user->contacts->common = '联系人';
diff --git a/module/user/model.php b/module/user/model.php
index cf06cd1323..549b479f5b 100644
--- a/module/user/model.php
+++ b/module/user/model.php
@@ -206,18 +206,18 @@ class userModel extends model
->setDefault('join', '0000-00-00')
->setIF($this->post->password1 != false, 'password', md5($this->post->password1))
->setIF($this->post->password1 == false, 'password', '')
- ->remove('group, password1, password2, verifyPwd')
+ ->remove('group, password1, password2, verifyPassword')
->get();
if(isset($this->config->safe->mode) and $this->computePasswordStrength($this->post->password1) < $this->config->safe->mode)
{
- dao::$errors['password1'][] = $this->lang->user->weakPwd;
+ dao::$errors['password1'][] = $this->lang->user->weakPassword;
return false;
}
- if(empty($_POST['verifyPwd']) or md5($this->post->verifyPwd) != $this->app->user->password)
+ if(empty($_POST['verifyPassword']) or md5($this->post->verifyPassword) != $this->app->user->password)
{
- dao::$errors['verifyPwd'][] = $this->lang->user->error->verifyPwd;
+ dao::$errors['verifyPassword'][] = $this->lang->user->error->verifyPassword;
return false;
}
@@ -246,7 +246,7 @@ class userModel extends model
*/
public function batchCreate()
{
- if(empty($_POST['verifyPwd']) or md5($this->post->verifyPwd) != $this->app->user->password) die(js::alert($this->lang->user->error->verifyPwd));
+ if(empty($_POST['verifyPassword']) or md5($this->post->verifyPassword) != $this->app->user->password) die(js::alert($this->lang->user->error->verifyPassword));
$users = fixer::input('post')->get();
$data = array();
@@ -319,18 +319,18 @@ class userModel extends model
$user = fixer::input('post')
->setDefault('join', '0000-00-00')
->setIF($this->post->password1 != false, 'password', md5($this->post->password1))
- ->remove('password1, password2, groups,verifyPwd')
+ ->remove('password1, password2, groups,verifyPassword')
->get();
if(isset($this->config->safe->mode) and $user->password and $this->computePasswordStrength($this->post->password1) < $this->config->safe->mode)
{
- dao::$errors['password1'][] = $this->lang->user->weakPwd;
+ dao::$errors['password1'][] = $this->lang->user->weakPassword;
return false;
}
- if(empty($_POST['verifyPwd']) or md5($this->post->verifyPwd) != $this->app->user->password)
+ if(empty($_POST['verifyPassword']) or md5($this->post->verifyPassword) != $this->app->user->password)
{
- dao::$errors['verifyPwd'][] = $this->lang->user->error->verifyPwd;
+ dao::$errors['verifyPassword'][] = $this->lang->user->error->verifyPassword;
return false;
}
@@ -377,7 +377,7 @@ class userModel extends model
*/
public function batchEdit()
{
- if(empty($_POST['verifyPwd']) or md5($this->post->verifyPwd) != $this->app->user->password) die(js::alert($this->lang->user->error->verifyPwd));
+ if(empty($_POST['verifyPassword']) or md5($this->post->verifyPassword) != $this->app->user->password) die(js::alert($this->lang->user->error->verifyPassword));
$oldUsers = $this->dao->select('id, account')->from(TABLE_USER)->where('id')->in(array_keys($this->post->account))->fetchPairs('id', 'account');
$accountGroup = $this->dao->select('id, account')->from(TABLE_USER)->where('account')->in($this->post->account)->fetchGroup('account', 'id');
@@ -435,18 +435,18 @@ class userModel extends model
$user = fixer::input('post')
->setIF($this->post->password1 != false, 'password', md5($this->post->password1))
- ->remove('account, password1, password2, originalPwd')
+ ->remove('account, password1, password2, originalPassword')
->get();
if(isset($this->config->safe->mode) and $this->computePasswordStrength($this->post->password1) < $this->config->safe->mode)
{
- dao::$errors['password1'][] = $this->lang->user->weakPwd;
+ dao::$errors['password1'][] = $this->lang->user->weakPassword;
return false;
}
- if(empty($_POST['originalPwd']) or md5($this->post->originalPwd) != $this->app->user->password)
+ if(empty($_POST['originalPassword']) or md5($this->post->originalPassword) != $this->app->user->password)
{
- dao::$errors['originalPwd'][] = $this->lang->user->error->originalPwd;
+ dao::$errors['originalPassword'][] = $this->lang->user->error->originalPassword;
return false;
}
@@ -460,9 +460,9 @@ class userModel extends model
* @access public
* @return bool
*/
- public function checkPassword($canNoPwd = false)
+ public function checkPassword($canNoPassword = false)
{
- if(!$canNoPwd and empty($_POST['password1'])) dao::$errors['password'][] = sprintf($this->lang->error->notempty, $this->lang->user->password);
+ if(!$canNoPassword and empty($_POST['password1'])) dao::$errors['password'][] = sprintf($this->lang->error->notempty, $this->lang->user->password);
if($this->post->password1 != false)
{
if($this->post->password1 != $this->post->password2) dao::$errors['password'][] = $this->lang->error->passwordsame;
diff --git a/module/user/view/batchcreate.html.php b/module/user/view/batchcreate.html.php
index 26433330b4..c54541db70 100644
--- a/module/user/view/batchcreate.html.php
+++ b/module/user/view/batchcreate.html.php
@@ -58,8 +58,11 @@
- | user->verifyPwd?> |
- user->placeholder->verify}'");?> |
+ user->verifyPassword?> |
+
+
+ user->placeholder->verify}'");?>
+ |
|
diff --git a/module/user/view/batchedit.html.php b/module/user/view/batchedit.html.php
index f8f543c857..23296aae41 100644
--- a/module/user/view/batchedit.html.php
+++ b/module/user/view/batchedit.html.php
@@ -54,8 +54,11 @@
- | user->verifyPwd?> |
- user->placeholder->verify}'");?> |
+ user->verifyPassword?> |
+
+
+ user->placeholder->verify}'");?>
+ |
|
diff --git a/module/user/view/create.html.php b/module/user/view/create.html.php
index 3fa06e4e43..3368cc51c1 100644
--- a/module/user/view/create.html.php
+++ b/module/user/view/create.html.php
@@ -24,7 +24,7 @@