Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
fb7827c7
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1438
Star
162
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
“fe51bc9eaf45253bd437907ed04031a93640ca69”上不存在“arch/sh/kernel/Makefile_64”
提交
fb7827c7
编写于
11月 30, 2018
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改密码
上级
ec3fc675
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
97 addition
and
7 deletion
+97
-7
skyeye-dao/src/main/java/com/skyeye/authority/dao/SysEveUserDao.java
...src/main/java/com/skyeye/authority/dao/SysEveUserDao.java
+2
-0
skyeye-service/src/main/java/com/skyeye/authority/service/SysEveUserService.java
.../java/com/skyeye/authority/service/SysEveUserService.java
+2
-0
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysEveUserServiceImpl.java
.../skyeye/authority/service/impl/SysEveUserServiceImpl.java
+36
-0
skyeye-web/src/main/java/com/skyeye/authority/controller/SysEveUserController.java
...com/skyeye/authority/controller/SysEveUserController.java
+16
-0
skyeye-web/src/main/resources/dbmapper/SysEveUserMapper.xml
skyeye-web/src/main/resources/dbmapper/SysEveUserMapper.xml
+8
-0
skyeye-web/src/main/resources/mapping/reqmapping.xml
skyeye-web/src/main/resources/mapping/reqmapping.xml
+4
-0
skyeye-web/src/main/webapp/js/syspersonal/editpassword.js
skyeye-web/src/main/webapp/js/syspersonal/editpassword.js
+21
-5
skyeye-web/src/main/webapp/tpl/syspersonal/editpassword.html
skyeye-web/src/main/webapp/tpl/syspersonal/editpassword.html
+8
-2
未找到文件。
skyeye-dao/src/main/java/com/skyeye/authority/dao/SysEveUserDao.java
浏览文件 @
fb7827c7
...
...
@@ -46,6 +46,8 @@ public interface SysEveUserDao {
public
int
insertSysUserMation
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
insertSysUserInstallMation
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
editUserPassword
(
Map
<
String
,
Object
>
bean
)
throws
Exception
;
...
...
skyeye-service/src/main/java/com/skyeye/authority/service/SysEveUserService.java
浏览文件 @
fb7827c7
...
...
@@ -40,6 +40,8 @@ public interface SysEveUserService {
public
void
editUserInstallWinTaskPosition
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
insertSysUserMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
editUserPassword
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
...
...
skyeye-service/src/main/java/com/skyeye/authority/service/impl/SysEveUserServiceImpl.java
浏览文件 @
fb7827c7
...
...
@@ -439,4 +439,40 @@ public class SysEveUserServiceImpl implements SysEveUserService{
sysEveUserDao
.
editUserInstallWinTaskPosition
(
map
);
}
/**
*
* @Title: editUserPassword
* @Description: 修改密码
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
editUserPassword
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
Map
<
String
,
Object
>
user
=
inputObject
.
getLogParams
();
map
.
put
(
"userCode"
,
user
.
get
(
"userCode"
));
Map
<
String
,
Object
>
userMation
=
sysEveUserDao
.
queryMationByUserCode
(
map
);
//根据redis中的用户信息userCode获取用户信息
int
pwdNum
=
Integer
.
parseInt
(
userMation
.
get
(
"pwdNum"
).
toString
());
String
password
=
map
.
get
(
"oldPassword"
).
toString
();
for
(
int
i
=
0
;
i
<
pwdNum
;
i
++){
password
=
ToolUtil
.
MD5
(
password
);
}
if
(
password
.
equals
(
userMation
.
get
(
"password"
).
toString
())){
//输入的旧密码数据库中的旧密码一致
//转化新密码
String
newPassword
=
map
.
get
(
"newPassword"
).
toString
();
for
(
int
i
=
0
;
i
<
pwdNum
;
i
++){
newPassword
=
ToolUtil
.
MD5
(
newPassword
);
}
Map
<
String
,
Object
>
bean
=
new
HashMap
<>();
bean
.
put
(
"id"
,
user
.
get
(
"id"
));
bean
.
put
(
"password"
,
newPassword
);
sysEveUserDao
.
editUserPassword
(
bean
);
}
else
{
outputObject
.
setreturnMessage
(
"旧密码输入错误."
);
}
}
}
skyeye-web/src/main/java/com/skyeye/authority/controller/SysEveUserController.java
浏览文件 @
fb7827c7
...
...
@@ -303,4 +303,20 @@ public class SysEveUserController {
sysEveUserService
.
editUserInstallWinTaskPosition
(
inputObject
,
outputObject
);
}
/**
*
* @Title: editUserPassword
* @Description: 修改密码
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SysEveUserController/editUserPassword"
)
@ResponseBody
public
void
editUserPassword
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
sysEveUserService
.
editUserPassword
(
inputObject
,
outputObject
);
}
}
skyeye-web/src/main/resources/dbmapper/SysEveUserMapper.xml
浏览文件 @
fb7827c7
...
...
@@ -238,4 +238,12 @@
(#{id}, #{userId}, #{winBgPicUrl}, #{winLockBgPicUrl}, #{winThemeColor}, #{winStartMenuSize}, #{winTaskPosition}, #{createId}, #{createTime})
</insert>
<update
id=
"editUserPassword"
parameterType=
"java.util.Map"
>
UPDATE sys_eve_user
<set>
password = #{password}
</set>
WHERE id = #{id}
</update>
</mapper>
\ No newline at end of file
skyeye-web/src/main/resources/mapping/reqmapping.xml
浏览文件 @
fb7827c7
...
...
@@ -20,6 +20,10 @@
<property
id=
"limit"
name=
"limit"
ref=
"required,num"
var=
"分页参数,每页多少条数据"
/>
<property
id=
"page"
name=
"page"
ref=
"required,num"
var=
"分页参数,第几页"
/>
</url>
<url
id=
"login007"
path=
"/post/SysEveUserController/editUserPassword"
val=
"修改密码"
allUse=
"1"
>
<property
id=
"newPassword"
name=
"newPassword"
ref=
"required"
var=
"新密码"
/>
<property
id=
"oldPassword"
name=
"oldPassword"
ref=
"required"
var=
"旧密码"
/>
</url>
<!-- 登录结束 -->
<!-- 公共请求开始 -->
...
...
skyeye-web/src/main/webapp/js/syspersonal/editpassword.js
浏览文件 @
fb7827c7
...
...
@@ -8,19 +8,35 @@ layui.config({
var
$
=
layui
.
$
,
form
=
layui
.
form
;
form
.
verify
({
oldPassword
:
function
(
value
,
item
){
if
(
value
.
length
<
6
){
return
"
密码长度不能小于6位
"
;
}
},
newPassword
:
function
(
value
,
item
){
if
(
value
.
length
<
6
){
return
"
密码长度不能小于6位
"
;
}
},
confirmPwd
:
function
(
value
,
item
){
if
(
$
(
"
#newPassword
"
).
val
()
!=
value
){
return
"
两次输入密码不一致,请重新输入!
"
;
}
}
});
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
//表单验证
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
companyId
:
parent
.
companyId
,
departmentId
:
parent
.
departmentId
,
jobName
:
$
(
"
#jobName
"
).
val
(),
jobDesc
:
encodeURI
(
layedit
.
getContent
(
layContent
))
newPassword
:
$
(
"
#newPassword
"
).
val
(),
oldPassword
:
$
(
"
#oldPassword
"
).
val
(),
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
companyjob002
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
login007
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
...
...
skyeye-web/src/main/webapp/tpl/syspersonal/editpassword.html
浏览文件 @
fb7827c7
...
...
@@ -10,16 +10,22 @@
<body>
<div
style=
"width:600px;margin:0 auto;padding-top:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
旧密码
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"password"
id=
"oldPassword"
name=
"oldPassword"
win-verify=
"required"
placeholder=
"请输入旧密码"
class=
"layui-input"
maxlength=
"18"
lay-verify=
"oldPassword"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
新密码
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"
text"
id=
"password"
name=
"password"
win-verify=
"required"
placeholder=
"请输入新密码"
class=
"layui-input"
maxlength=
"50
"
/>
<input
type=
"
password"
id=
"newPassword"
name=
"newPassword"
win-verify=
"required"
placeholder=
"请输入新密码"
class=
"layui-input"
maxlength=
"18"
lay-verify=
"newPassword
"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
确认密码
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"
text"
id=
"password1"
name=
"password1"
win-verify=
"required"
placeholder=
"请再次输入密码"
class=
"layui-input"
maxlength=
"50
"
/>
<input
type=
"
password"
id=
"confirmPwd"
name=
"confirmPwd"
win-verify=
"required"
placeholder=
"请再次输入密码"
class=
"layui-input"
maxlength=
"18"
lay-verify=
"confirmPwd
"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录