Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MaxKey单点登录官方(MaxKeyTop)
MaxKey
提交
f4fd7a94
MaxKey
项目概览
MaxKey单点登录官方(MaxKeyTop)
/
MaxKey
大约 1 年 前同步成功
通知
76
Star
3
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MaxKey
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f4fd7a94
编写于
11月 01, 2020
作者:
S
stevenBeLove
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify userinfo status
上级
be866135
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
964 addition
and
864 deletion
+964
-864
maxkey-persistence/src/test/resources/application.properties
maxkey-persistence/src/test/resources/application.properties
+1
-1
maxkey-web-manage/src/main/java/org/maxkey/web/contorller/UserInfoController.java
...in/java/org/maxkey/web/contorller/UserInfoController.java
+21
-0
maxkey-web-manage/src/main/resources/application.properties
maxkey-web-manage/src/main/resources/application.properties
+1
-1
maxkey-web-manage/src/main/resources/messages/message.properties
...web-manage/src/main/resources/messages/message.properties
+435
-430
maxkey-web-manage/src/main/resources/messages/message_en.properties
...-manage/src/main/resources/messages/message_en.properties
+6
-1
maxkey-web-manage/src/main/resources/messages/message_zh_CN.properties
...nage/src/main/resources/messages/message_zh_CN.properties
+435
-430
maxkey-web-manage/src/main/resources/templates/views/userinfo/changeUserinfoStatus.ftl
...sources/templates/views/userinfo/changeUserinfoStatus.ftl
+64
-0
maxkey-web-maxkey/src/main/resources/application.properties
maxkey-web-maxkey/src/main/resources/application.properties
+1
-1
未找到文件。
maxkey-persistence/src/test/resources/application.properties
浏览文件 @
f4fd7a94
...
...
@@ -24,7 +24,7 @@ spring.servlet.multipart.max-file-size=4194304
#server.servlet.encoding.force=true
#datasource
spring.datasource.username
=
root
spring.datasource.password
=
maxkey
spring.datasource.password
=
root
spring.datasource.url
=
jdbc:mysql://localhost/maxkey?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.type
=
com.alibaba.druid.pool.DruidDataSource
...
...
maxkey-web-manage/src/main/java/org/maxkey/web/contorller/UserInfoController.java
浏览文件 @
f4fd7a94
...
...
@@ -250,6 +250,15 @@ public class UserInfoController {
return
modelAndView
;
}
@RequestMapping
(
value
={
"/forwardChangeUserinfoStatus/{id}"
})
public
ModelAndView
forwardChangeUserinfoStatus
(
@PathVariable
(
"id"
)
String
id
){
ModelAndView
modelAndView
=
new
ModelAndView
(
"/userinfo/changeUserinfoStatus"
);
UserInfo
userInfo
=
userInfoService
.
get
(
id
);
modelAndView
.
addObject
(
"model"
,
userInfo
);
return
modelAndView
;
}
@ResponseBody
@RequestMapping
(
value
=
"/changePassword"
)
public
Message
changePassword
(
@ModelAttribute
(
"userInfo"
)
UserInfo
userInfo
)
{
...
...
@@ -262,6 +271,18 @@ public class UserInfoController {
}
}
@ResponseBody
@RequestMapping
(
value
=
"/changeUserinfoStatus"
)
public
Message
changeUserinfoStatus
(
@ModelAttribute
(
"userInfo"
)
UserInfo
userInfo
)
{
_logger
.
debug
(
userInfo
.
getId
());
if
(
userInfoService
.
update
(
userInfo
))
{
return
new
Message
(
WebContext
.
getI18nValue
(
ConstantsOperateMessage
.
UPDATE_SUCCESS
),
MessageType
.
success
);
}
else
{
return
new
Message
(
WebContext
.
getI18nValue
(
ConstantsOperateMessage
.
UPDATE_ERROR
),
MessageType
.
error
);
}
}
@InitBinder
public
void
binder
(
WebDataBinder
binder
)
{
binder
.
registerCustomEditor
(
String
.
class
,
new
PropertyEditorSupport
()
{
...
...
maxkey-web-manage/src/main/resources/application.properties
浏览文件 @
f4fd7a94
...
...
@@ -16,7 +16,7 @@ spring.servlet.multipart.max-file-size=4194304
#server.servlet.encoding.force=
#datasource
spring.datasource.username
=
root
spring.datasource.password
=
maxkey
spring.datasource.password
=
root
spring.datasource.url
=
jdbc:mysql://localhost/maxkey?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.type
=
com.alibaba.druid.pool.DruidDataSource
...
...
maxkey-web-manage/src/main/resources/messages/message.properties
浏览文件 @
f4fd7a94
此差异已折叠。
点击以展开。
maxkey-web-manage/src/main/resources/messages/message_en.properties
浏览文件 @
f4fd7a94
...
...
@@ -2,7 +2,7 @@ global.title=MaxKey Secure Management
global.application
=
Max<span style="color: #FFD700;">Key</span> Secure Management
global.change.language
=
Language
global.change.language.en
=
English
global.change.language.zh
=
\u
4
e2d
\u6587
global.change.language.zh
=
\u
4
E2D
\u6587
global.text.welcome
=
Welcome
global.text.manage
=
Manage
global.text.copyright
=
CopyRight
...
...
@@ -192,6 +192,11 @@ userinfo.homeFax=homeFax
userinfo.homePhoneNumber
=
homePhoneNumber
userinfo.homeEmail
=
homeEmail
userinfo.ims
=
IMS
userinfo.status
=
userStatus
userinfo.status.active
=
active
userinfo.status.withdrawn
=
withdrawn
userinfo.status.inactive
=
inactive
userinfo.status.retiree
=
retiree
userinfo.authnType
=
AuthenticationType
userinfo.authnType.authnType.1
=
General login
...
...
maxkey-web-manage/src/main/resources/messages/message_zh_CN.properties
浏览文件 @
f4fd7a94
此差异已折叠。
点击以展开。
maxkey-web-manage/src/main/resources/templates/views/userinfo/changeUserinfoStatus.ftl
0 → 100644
浏览文件 @
f4fd7a94
<!DOCTYPE HTML>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<
#include
"../
layout
/
header.ftl
"
/>
<
#include
"../
layout
/
common.cssjs.ftl
"
/>
<style
type=
"text/css"
>
.table
th
,
.table
td
{
padding
:
.2rem
;
vertical-align
:
middle
;
}
</style>
<script
type=
"text/javascript"
>
<!--
$
(
function
(){
});
//-->
</script>
</head>
<body>
<form
id=
"actionForm"
method=
"post"
type=
"label"
autoclose=
"true"
action=
"<@base/>/userinfo/changeUserinfoStatus"
class=
"needs-validation"
novalidate
>
<table
class=
"table table-bordered"
>
<tbody>
<tr>
<th><
@
locale
code=
"userinfo.displayName"
/>
:
</th>
<td>
<input
readonly
type=
"hidden"
id=
"id"
name=
"id"
class=
"required"
title=
""
value=
"${model.id}"
/>
<input
readonly
type=
"text"
id=
"displayName"
name=
"displayName"
class=
"form-control"
title=
""
value=
"${model.displayName}"
/>
</td>
</tr>
<tr>
<th><
@
locale
code=
"userinfo.username"
/>
:
</th>
<td>
<input
readonly
type=
"text"
id=
"username"
name=
"username"
class=
"form-control"
title=
""
value=
"${model.username}"
/>
</td>
</tr>
<tr>
<th><
@
locale
code=
"userinfo.status"
/>
:
</th>
<td>
<select
name=
"status"
id=
"status"
class=
"form-control"
>
<option
value=
"1"
<
#if
1==
model.status
>
selected
</
#
if>
>
<
@
locale
code=
"userinfo.status.active"
/></option>
<option
value=
"2"
<
#if
2==
model.status
>
selected
</
#
if>
>
<
@
locale
code=
"userinfo.status.withdrawn"
/></option>
<option
value=
"3"
<
#if
3==
model.status
>
selected
</
#
if>
>
<
@
locale
code=
"userinfo.status.inactive"
/></option>
<option
value=
"4"
<
#if
4==
model.status
>
selected
</
#
if>
>
<
@
locale
code=
"userinfo.status.retiree"
/></option>
</select>
</td>
</tr>
<tr>
<td
colspan=
"2"
class=
"center"
>
<input
id=
"_method"
type=
"hidden"
name=
"_method"
value=
"post"
/>
<input
class=
"button btn btn-primary mr-3"
style=
"width:100px"
type=
"submit"
id=
"submitBtn"
value=
"<@locale code="
button.text.save
"
/>
"/>
</td>
</tr>
</tbody>
</table>
</form>
</body>
</html>
\ No newline at end of file
maxkey-web-maxkey/src/main/resources/application.properties
浏览文件 @
f4fd7a94
...
...
@@ -24,7 +24,7 @@ spring.servlet.multipart.max-file-size=4194304
#server.servlet.encoding.force=true
#datasource
spring.datasource.username
=
root
spring.datasource.password
=
maxkey
spring.datasource.password
=
root
spring.datasource.url
=
jdbc:mysql://localhost/maxkey?autoReconnect=true&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.type
=
com.alibaba.druid.pool.DruidDataSource
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录