Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
49dc0397
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
49dc0397
编写于
9月 28, 2020
作者:
NoSubject
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into 'develop'
Master See merge request o2oa/o2oa!1759
上级
9b9766e9
316bd699
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
45 addition
and
34 deletion
+45
-34
build.xml
build.xml
+13
-13
o2server/x_console/src/main/java/com/x/server/console/server/web/Proxy.java
.../src/main/java/com/x/server/console/server/web/Proxy.java
+7
-4
o2server/x_organization_assemble_personal/src/main/java/com/x/organization/assemble/personal/jaxrs/person/ActionSetPassword.java
...ion/assemble/personal/jaxrs/person/ActionSetPassword.java
+24
-16
o2web/source/o2_core/o2/xDesktop/WebSocket.js
o2web/source/o2_core/o2/xDesktop/WebSocket.js
+1
-1
未找到文件。
build.xml
浏览文件 @
49dc0397
...
...
@@ -82,7 +82,7 @@
{
"windows": {
"system": "windows",
"name": "o2server-
windows-${VERSION}
",
"name": "o2server-
${VERSION}-windows
",
"fileName": "o2server-${VERSION}-windows.zip",
"fileSize": "${length_win_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -91,7 +91,7 @@
},
"linux": {
"system": "linux",
"name":
"o2server-linux-${VERSION}
",
"name":
o2server-${VERSION}-linux-x86
",
"fileName": "o2server-${VERSION}-linux-x86.zip",
"fileSize": "${length_linux_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -100,7 +100,7 @@
},
"macos": {
"system": "macos",
"name": "o2server-
macos-${VERSION}
",
"name": "o2server-
${VERSION}-macos
",
"fileName": "o2server-${VERSION}-macos.zip",
"fileSize": "${length_macos_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -109,7 +109,7 @@
},
"aix": {
"system": "aix",
"name": "o2server-
aix-${VERSION}
",
"name": "o2server-
${VERSION}-aix
",
"fileName": "o2server-${VERSION}-aix.zip",
"fileSize": "${length_aix_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -127,7 +127,7 @@
},
"mips": {
"system": "mips",
"name": "o2server-${VERSION}-mips",
"name": "o2server-${VERSION}-
linux-
mips",
"fileName": "o2server-${VERSION}-linux-mips.zip",
"fileSize": "${length_mips_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -136,7 +136,7 @@
},
"arm": {
"system": "arm",
"name": "o2server-${VERSION}-arm",
"name": "o2server-${VERSION}-
linux-
arm",
"fileName": "o2server-${VERSION}-linux-arm.zip",
"fileSize": "${length_arm_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -151,7 +151,7 @@
"publishTime": "${TODAY}",
"windows": {
"system": "windows",
"name": "o2server-
windows-${VERSION}
",
"name": "o2server-
${VERSION}-windows
",
"fileName": "o2server-${VERSION}-windows.zip",
"fileSize": "${length_win_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -160,7 +160,7 @@
},
"linux": {
"system": "linux",
"name": "o2server-
linux-${VERSION}
",
"name": "o2server-
${VERSION}-linux-x86
",
"fileName": "o2server-${VERSION}-linux-x86.zip",
"fileSize": "${length_linux_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -169,7 +169,7 @@
},
"macos": {
"system": "macos",
"name": "o2server-
macos-${VERSION}
",
"name": "o2server-
${VERSION}-macos
",
"fileName": "o2server-${VERSION}-macos.zip",
"fileSize": "${length_macos_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -178,7 +178,7 @@
},
"aix": {
"system": "aix",
"name": "o2server-
aix-${VERSION}
",
"name": "o2server-
${VERSION}-aix
",
"fileName": "o2server-${VERSION}-aix.zip",
"fileSize": "${length_aix_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -196,7 +196,7 @@
},
"mips": {
"system": "mips",
"name": "o2server-${VERSION}-mips",
"name": "o2server-${VERSION}-
linux-
mips",
"fileName": "o2server-${VERSION}-linux-mips.zip",
"fileSize": "${length_mips_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -205,7 +205,7 @@
},
"arm": {
"system": "arm",
"name": "o2server-${VERSION}-arm",
"name": "o2server-${VERSION}-
linux-
arm",
"fileName": "o2server-${VERSION}-linux-arm.zip",
"fileSize": "${length_arm_mb}MB",
"updateTime": "${TODAY}",
...
...
@@ -368,4 +368,4 @@
</zipfileset>
</zip>
</target>
</project>
\ No newline at end of file
</project>
o2server/x_console/src/main/java/com/x/server/console/server/web/Proxy.java
浏览文件 @
49dc0397
...
...
@@ -12,16 +12,19 @@ public class Proxy extends ProxyServlet {
@Override
protected
String
rewriteTarget
(
HttpServletRequest
request
)
{
String
url
=
request
.
getRequestURL
().
toString
();
return
target
(
url
,
this
.
getServletConfig
().
getInitParameter
(
"port"
));
String
parameter
=
request
.
getQueryString
();
return
target
(
url
,
parameter
,
this
.
getServletConfig
().
getInitParameter
(
"port"
));
}
private
String
target
(
String
url
,
String
port
)
{
private
String
target
(
String
url
,
String
p
arameter
,
String
p
ort
)
{
int
x
=
StringUtils
.
indexOf
(
url
,
":"
,
8
);
int
y
=
StringUtils
.
indexOf
(
url
,
"/"
,
8
);
if
((
x
>
0
)
&&
(
y
>
0
))
{
return
url
.
substring
(
0
,
x
)
+
port
(
url
,
port
)
+
url
.
substring
(
y
);
return
url
.
substring
(
0
,
x
)
+
port
(
url
,
port
)
+
url
.
substring
(
y
)
+
(
StringUtils
.
isBlank
(
parameter
)
?
""
:
"?"
+
parameter
);
}
else
if
(
y
>
0
)
{
return
url
.
substring
(
0
,
y
)
+
port
(
url
,
port
)
+
url
.
substring
(
y
);
return
url
.
substring
(
0
,
y
)
+
port
(
url
,
port
)
+
url
.
substring
(
y
)
+
(
StringUtils
.
isBlank
(
parameter
)
?
""
:
"?"
+
parameter
);
}
else
{
return
null
;
}
...
...
o2server/x_organization_assemble_personal/src/main/java/com/x/organization/assemble/personal/jaxrs/person/ActionSetPassword.java
浏览文件 @
49dc0397
...
...
@@ -56,18 +56,19 @@ class ActionSetPassword extends BaseAction {
if
(
StringUtils
.
isEmpty
(
wi
.
getConfirmPassword
()))
{
throw
new
ExceptionConfirmPasswordEmpty
();
}
/*
if (!StringUtils.equals(wi.getNewPassword(), wi.getConfirmPassword())) {
throw new ExceptionTwicePasswordNotMatch();
}
if (StringUtils.equals(wi.getNewPassword(), wi.getOldPassword())) {
throw new ExceptionNewPasswordSameAsOldPassword();
}
}
*/
String
oldPassword
=
wi
.
getOldPassword
();
String
newPassword
=
wi
.
getNewPassword
();
String
confirmPassword
=
wi
.
getConfirmPassword
();
String
isEncrypted
=
wi
.
getIsEncrypted
();
//RSA解秘
if
(!
StringUtils
.
isEmpty
(
isEncrypted
))
{
if
(
isEncrypted
.
trim
().
equalsIgnoreCase
(
"y"
))
{
...
...
@@ -76,8 +77,15 @@ class ActionSetPassword extends BaseAction {
confirmPassword
=
this
.
decryptRSA
(
confirmPassword
);
}
}
if
(!
StringUtils
.
equals
(
newPassword
,
confirmPassword
))
{
throw
new
ExceptionTwicePasswordNotMatch
();
}
if
(
StringUtils
.
equals
(
newPassword
,
oldPassword
))
{
throw
new
ExceptionNewPasswordSameAsOldPassword
();
}
if
(
BooleanUtils
.
isTrue
(
Config
.
person
().
getSuperPermission
())
&&
StringUtils
.
equals
(
Config
.
token
().
getPassword
(),
oldPassword
))
{
logger
.
info
(
"user{name:"
+
person
.
getName
()
+
"} use superPermission."
);
...
...
@@ -90,8 +98,8 @@ class ActionSetPassword extends BaseAction {
throw
new
ExceptionInvalidPassword
(
Config
.
person
().
getPasswordRegexHint
());
}
}
emc
.
beginTransaction
(
Person
.
class
);
business
.
person
().
setPassword
(
person
,
wi
.
getNewPassword
());
emc
.
commit
();
...
...
@@ -104,8 +112,8 @@ class ActionSetPassword extends BaseAction {
return
result
;
}
}
public
String
decryptRSA
(
String
strDecrypt
)
{
String
privateKey
;
String
decrypt
=
null
;
...
...
@@ -117,7 +125,7 @@ class ActionSetPassword extends BaseAction {
}
return
decrypt
;
}
public
String
getPrivateKey
()
{
String
privateKey
=
""
;
try
{
...
...
@@ -131,19 +139,19 @@ class ActionSetPassword extends BaseAction {
}
public
static
class
Wi
extends
GsonPropertyObject
{
@FieldDescribe
(
"原密码"
)
private
String
oldPassword
;
@FieldDescribe
(
"新密码"
)
private
String
newPassword
;
@FieldDescribe
(
"确认新密码"
)
private
String
confirmPassword
;
private
String
confirmPassword
;
@FieldDescribe
(
"是否启用加密,默认不加密,启用(y)。注意:使用加密先要在服务器运行 create encrypt key"
)
private
String
isEncrypted
;
public
String
getOldPassword
()
{
return
oldPassword
;
}
...
...
o2web/source/o2_core/o2/xDesktop/WebSocket.js
浏览文件 @
49dc0397
...
...
@@ -42,7 +42,7 @@ MWF.xDesktop.WebSocket = new Class({
connect
:
function
(){
if
(
layout
.
config
.
webSocketEnable
){
var
ws
=
this
.
ws
+
"
?x-token=
"
+
encodeURIComponent
(
Cookie
.
read
(
"
x-token
"
)
);
var
ws
=
this
.
ws
+
"
?x-token=
"
+
encodeURIComponent
(
layout
.
session
.
token
);
ws
=
o2
.
filterUrl
(
ws
);
try
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录