Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
f6202ba2
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,发现更多精彩内容 >>
提交
f6202ba2
编写于
9月 17, 2020
作者:
Z
zhourui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
plainText
上级
7b00f586
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
34 addition
and
45 deletion
+34
-45
o2server/x_base_core_project/src/main/java/com/x/base/core/container/factory/PersistenceXmlHelper.java
...m/x/base/core/container/factory/PersistenceXmlHelper.java
+2
-1
o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/StorageServer.java
...in/java/com/x/base/core/project/config/StorageServer.java
+1
-0
o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/Token.java
...t/src/main/java/com/x/base/core/project/config/Token.java
+22
-9
o2server/x_base_core_project/src/main/java/com/x/base/core/project/tools/Crypto.java
...t/src/main/java/com/x/base/core/project/tools/Crypto.java
+1
-1
o2server/x_console/src/main/java/com/x/server/console/ResourceFactory.java
...e/src/main/java/com/x/server/console/ResourceFactory.java
+2
-2
o2server/x_console/src/main/java/com/x/server/console/action/Decrypt.java
...le/src/main/java/com/x/server/console/action/Decrypt.java
+1
-1
o2server/x_console/src/main/java/com/x/server/console/server/data/DataServerTools.java
...ava/com/x/server/console/server/data/DataServerTools.java
+1
-1
o2server/x_console/src/main/java/com/x/server/console/server/storage/StorageServerTools.java
...m/x/server/console/server/storage/StorageServerTools.java
+1
-28
o2server/x_organization_assemble_authentication/src/main/java/com/x/organization/assemble/authentication/jaxrs/authentication/ActionCaptchaLogin.java
...thentication/jaxrs/authentication/ActionCaptchaLogin.java
+1
-1
o2server/x_organization_assemble_authentication/src/main/java/com/x/organization/assemble/authentication/jaxrs/authentication/ActionLogin.java
...mble/authentication/jaxrs/authentication/ActionLogin.java
+1
-1
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/adminlogin/ActionLogin.java
...va/com/x/program/center/jaxrs/adminlogin/ActionLogin.java
+1
-0
未找到文件。
o2server/x_base_core_project/src/main/java/com/x/base/core/container/factory/PersistenceXmlHelper.java
浏览文件 @
f6202ba2
...
@@ -11,6 +11,7 @@ import com.x.base.core.entity.JpaObject;
...
@@ -11,6 +11,7 @@ import com.x.base.core.entity.JpaObject;
import
com.x.base.core.entity.tools.JpaObjectTools
;
import
com.x.base.core.entity.tools.JpaObjectTools
;
import
com.x.base.core.project.config.Config
;
import
com.x.base.core.project.config.Config
;
import
com.x.base.core.project.config.Node
;
import
com.x.base.core.project.config.Node
;
import
com.x.base.core.project.tools.Crypto
;
import
com.x.base.core.project.tools.ListTools
;
import
com.x.base.core.project.tools.ListTools
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FileUtils
;
...
@@ -62,7 +63,7 @@ public class PersistenceXmlHelper {
...
@@ -62,7 +63,7 @@ public class PersistenceXmlHelper {
throw
new
Exception
(
"registContainerEntity error.className:"
+
ListTools
.
toStringJoin
(
classNames
),
e
);
throw
new
Exception
(
"registContainerEntity error.className:"
+
ListTools
.
toStringJoin
(
classNames
),
e
);
}
}
}
}
public
static
void
writeForDdl
(
String
path
)
throws
Exception
{
public
static
void
writeForDdl
(
String
path
)
throws
Exception
{
try
{
try
{
Document
document
=
DocumentHelper
.
createDocument
();
Document
document
=
DocumentHelper
.
createDocument
();
...
...
o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/StorageServer.java
浏览文件 @
f6202ba2
...
@@ -8,6 +8,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -8,6 +8,7 @@ import org.apache.commons.lang3.StringUtils;
import
com.x.base.core.entity.StorageProtocol
;
import
com.x.base.core.entity.StorageProtocol
;
import
com.x.base.core.entity.StorageType
;
import
com.x.base.core.entity.StorageType
;
import
com.x.base.core.project.annotation.FieldDescribe
;
import
com.x.base.core.project.annotation.FieldDescribe
;
import
com.x.base.core.project.tools.Crypto
;
import
com.x.base.core.project.tools.ListTools
;
import
com.x.base.core.project.tools.ListTools
;
public
class
StorageServer
extends
ConfigObject
{
public
class
StorageServer
extends
ConfigObject
{
...
...
o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/Token.java
浏览文件 @
f6202ba2
...
@@ -9,6 +9,9 @@ import java.util.Map;
...
@@ -9,6 +9,9 @@ import java.util.Map;
import
java.util.Objects
;
import
java.util.Objects
;
import
com.x.base.core.project.tools.BaseTools
;
import
com.x.base.core.project.tools.BaseTools
;
import
com.x.base.core.project.tools.Crypto
;
import
org.apache.commons.codec.digest.DigestUtils
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.io.FileUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -31,6 +34,11 @@ public class Token extends ConfigObject {
...
@@ -31,6 +34,11 @@ public class Token extends ConfigObject {
public
static
final
String
defaultSslKeyStorePassword
=
"123456"
;
public
static
final
String
defaultSslKeyStorePassword
=
"123456"
;
public
static
final
String
defaultSslKeyManagerPassword
=
"123456"
;
public
static
final
String
defaultSslKeyManagerPassword
=
"123456"
;
// 此对象临时计算无需存储
private
transient
String
_cipher
=
""
;
// 此对象临时计算无需存储
private
transient
String
_password
=
""
;
public
static
Token
defaultInstance
()
{
public
static
Token
defaultInstance
()
{
Token
o
=
new
Token
();
Token
o
=
new
Token
();
return
o
;
return
o
;
...
@@ -45,7 +53,7 @@ public class Token extends ConfigObject {
...
@@ -45,7 +53,7 @@ public class Token extends ConfigObject {
this
.
initialManagerDistinguishedName
=
defaultInitialManagerDistinguishedName
;
this
.
initialManagerDistinguishedName
=
defaultInitialManagerDistinguishedName
;
}
}
/
** 加密用的key,用于加密口令 */
/
/ 加密用的key,用于加密口令
@FieldDescribe
(
"加密用口令的密钥,修改后会导致用户口令验证失败."
)
@FieldDescribe
(
"加密用口令的密钥,修改后会导致用户口令验证失败."
)
private
String
key
;
private
String
key
;
...
@@ -73,7 +81,7 @@ public class Token extends ConfigObject {
...
@@ -73,7 +81,7 @@ public class Token extends ConfigObject {
@FieldDescribe
(
"作为客户端单点登录配置"
)
@FieldDescribe
(
"作为客户端单点登录配置"
)
private
List
<
OauthClient
>
oauthClients
=
new
ArrayList
<>();
private
List
<
OauthClient
>
oauthClients
=
new
ArrayList
<>();
/
* 前面的代码是 key+surfix 结果是nullo2platform */
/
/ 前面的代码是 key+surfix 结果是nullo2platform
public
String
getKey
()
{
public
String
getKey
()
{
String
val
=
Objects
.
toString
(
key
,
""
)
+
surfix
;
String
val
=
Objects
.
toString
(
key
,
""
)
+
surfix
;
return
StringUtils
.
substring
(
val
,
0
,
8
);
return
StringUtils
.
substring
(
val
,
0
,
8
);
...
@@ -87,12 +95,19 @@ public class Token extends ConfigObject {
...
@@ -87,12 +95,19 @@ public class Token extends ConfigObject {
}
}
}
}
public
String
getCipher
()
{
public
String
getCipher
()
throws
Exception
{
return
this
.
getPassword
()
+
surfix
;
if
(
StringUtils
.
isEmpty
(
this
.
_cipher
))
{
this
.
_cipher
=
DigestUtils
.
md5Hex
(
this
.
getPassword
());
}
return
this
.
_cipher
;
// return this.getPassword() + surfix;
}
}
public
String
getPassword
()
{
public
String
getPassword
()
throws
Exception
{
return
StringUtils
.
isEmpty
(
this
.
password
)
?
initPassword
:
this
.
password
;
if
(
StringUtils
.
isEmpty
(
this
.
_password
))
{
this
.
_password
=
StringUtils
.
isEmpty
(
this
.
password
)
?
initPassword
:
Crypto
.
plainText
(
this
.
password
);
}
return
this
.
_password
;
}
}
public
void
setPassword
(
String
password
)
{
public
void
setPassword
(
String
password
)
{
...
@@ -178,7 +193,7 @@ public class Token extends ConfigObject {
...
@@ -178,7 +193,7 @@ public class Token extends ConfigObject {
public
void
save
()
throws
Exception
{
public
void
save
()
throws
Exception
{
File
file
=
new
File
(
Config
.
base
(),
Config
.
PATH_CONFIG_TOKEN
);
File
file
=
new
File
(
Config
.
base
(),
Config
.
PATH_CONFIG_TOKEN
);
FileUtils
.
write
(
file
,
XGsonBuilder
.
toJson
(
this
),
DefaultCharset
.
charset
);
FileUtils
.
write
(
file
,
XGsonBuilder
.
toJson
(
this
),
DefaultCharset
.
charset
);
BaseTools
.
executeSyncFile
(
Config
.
PATH_CONFIG_TOKEN
);
BaseTools
.
executeSyncFile
(
Config
.
PATH_CONFIG_TOKEN
);
}
}
public
boolean
isInitialManager
(
String
name
)
{
public
boolean
isInitialManager
(
String
name
)
{
...
@@ -309,8 +324,6 @@ public class Token extends ConfigObject {
...
@@ -309,8 +324,6 @@ public class Token extends ConfigObject {
this
.
roleList
=
roleList
;
this
.
roleList
=
roleList
;
}
}
public
String
getUnique
()
{
public
String
getUnique
()
{
return
unique
;
return
unique
;
}
}
...
...
o2server/x_base_core_project/src/main/java/com/x/base/core/project/tools/Crypto.java
浏览文件 @
f6202ba2
...
@@ -126,7 +126,7 @@ public class Crypto {
...
@@ -126,7 +126,7 @@ public class Crypto {
public
static
final
String
TEST_PUBLIC_KEY
=
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCWcVZIS57VeOUzi8c01WKvwJK9uRe6hrGTUYmF6J/pI6/UvCbdBWCoErbzsBZOElOH8Sqal3vsNMVLjPYClfoDyYDaUlakP3ldfnXJzAFJVVubF53KadG+fwnh9ZMvxdh7VXVqRL3IQBDwGgzX4rmSK+qkUJjc3OkrNJPB7LLD8QIDAQAB"
;
public
static
final
String
TEST_PUBLIC_KEY
=
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCWcVZIS57VeOUzi8c01WKvwJK9uRe6hrGTUYmF6J/pI6/UvCbdBWCoErbzsBZOElOH8Sqal3vsNMVLjPYClfoDyYDaUlakP3ldfnXJzAFJVVubF53KadG+fwnh9ZMvxdh7VXVqRL3IQBDwGgzX4rmSK+qkUJjc3OkrNJPB7LLD8QIDAQAB"
;
public
static
final
String
TEST_PRIVATE_KEY
=
"MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAJZxVkhLntV45TOLxzTVYq/Akr25F7qGsZNRiYXon+kjr9S8Jt0FYKgStvOwFk4SU4fxKpqXe+w0xUuM9gKV+gPJgNpSVqQ/eV1+dcnMAUlVW5sXncpp0b5/CeH1ky/F2HtVdWpEvchAEPAaDNfiuZIr6qRQmNzc6Ss0k8HsssPxAgMBAAECgYAWtRy05NUgm5Lc6Og0jVDL/mEnydxPBy2ectwzHh2k7wIHNi8XhUxFki2TMqzrM9Dv3/LySpMl4AE3mhs34LNPy6F+MwyF5X7j+2Y6MflJyeb9HNyT++viysQneoOEiOk3ghxF2/GPjpiEF79wSp+1YKTxRAyq7ypV3t35fGOOEQJBANLDPWl8b5c3lrcz/dTamMjHbVamEyX43yzQOphzkhYsz4pruATzTxU+z8/zPdEqHcWWV39CP3xu3EYNcAhxJW8CQQC2u7PF5Xb1xYRCsmIPssFxil64vvdUadSxl7GLAgjQ9ULyYWB24KObCEzLnPcT8Pf2Q0YQOixxa/78FuzmgbyfAkA7ZFFV/H7lugB6t+f7p24OhkRFep9CwBMD6dnZRBgSr6X8d8ZvfrD2Z7DgBMeSva+OEoOtlNmXExZ3lynO9zN5AkAVczEmIMp3DSl6XtAuAZC9kD2QODJ2QToLYsAfjiyUwsWKCC43piTuVOoW2KUUPSwOR1VZIEsJQWEcHGDQqhgHAkAeZ7a6dVRZFdBwKA0ADjYCufAW2cIYiVDQBJpgB+kiLQflusNOCBK0FT3lg8BdUSy2D253Ih6l3lbaM/4M7DFQ"
;
public
static
final
String
TEST_PRIVATE_KEY
=
"MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAJZxVkhLntV45TOLxzTVYq/Akr25F7qGsZNRiYXon+kjr9S8Jt0FYKgStvOwFk4SU4fxKpqXe+w0xUuM9gKV+gPJgNpSVqQ/eV1+dcnMAUlVW5sXncpp0b5/CeH1ky/F2HtVdWpEvchAEPAaDNfiuZIr6qRQmNzc6Ss0k8HsssPxAgMBAAECgYAWtRy05NUgm5Lc6Og0jVDL/mEnydxPBy2ectwzHh2k7wIHNi8XhUxFki2TMqzrM9Dv3/LySpMl4AE3mhs34LNPy6F+MwyF5X7j+2Y6MflJyeb9HNyT++viysQneoOEiOk3ghxF2/GPjpiEF79wSp+1YKTxRAyq7ypV3t35fGOOEQJBANLDPWl8b5c3lrcz/dTamMjHbVamEyX43yzQOphzkhYsz4pruATzTxU+z8/zPdEqHcWWV39CP3xu3EYNcAhxJW8CQQC2u7PF5Xb1xYRCsmIPssFxil64vvdUadSxl7GLAgjQ9ULyYWB24KObCEzLnPcT8Pf2Q0YQOixxa/78FuzmgbyfAkA7ZFFV/H7lugB6t+f7p24OhkRFep9CwBMD6dnZRBgSr6X8d8ZvfrD2Z7DgBMeSva+OEoOtlNmXExZ3lynO9zN5AkAVczEmIMp3DSl6XtAuAZC9kD2QODJ2QToLYsAfjiyUwsWKCC43piTuVOoW2KUUPSwOR1VZIEsJQWEcHGDQqhgHAkAeZ7a6dVRZFdBwKA0ADjYCufAW2cIYiVDQBJpgB+kiLQflusNOCBK0FT3lg8BdUSy2D253Ih6l3lbaM/4M7DFQ"
;
public
static
String
plainText
Password
(
String
text
)
throws
Exception
{
public
static
String
plainText
(
String
text
)
throws
Exception
{
if
(
StringUtils
.
isEmpty
(
text
))
{
if
(
StringUtils
.
isEmpty
(
text
))
{
return
text
;
return
text
;
}
}
...
...
o2server/x_console/src/main/java/com/x/server/console/ResourceFactory.java
浏览文件 @
f6202ba2
...
@@ -98,7 +98,7 @@ public class ResourceFactory {
...
@@ -98,7 +98,7 @@ public class ResourceFactory {
dataSource
.
setDriverClass
(
ds
.
getDriverClassName
());
dataSource
.
setDriverClass
(
ds
.
getDriverClassName
());
dataSource
.
setPreferredTestQuery
(
SlicePropertiesBuilder
.
validationQueryOfUrl
(
ds
.
getUrl
()));
dataSource
.
setPreferredTestQuery
(
SlicePropertiesBuilder
.
validationQueryOfUrl
(
ds
.
getUrl
()));
dataSource
.
setUser
(
ds
.
getUsername
());
dataSource
.
setUser
(
ds
.
getUsername
());
dataSource
.
setPassword
(
Crypto
.
plainTextPassword
(
ds
.
getPassword
()
));
dataSource
.
setPassword
(
ds
.
getPassword
(
));
dataSource
.
setMaxPoolSize
(
ds
.
getMaxTotal
());
dataSource
.
setMaxPoolSize
(
ds
.
getMaxTotal
());
dataSource
.
setMinPoolSize
(
ds
.
getMaxIdle
());
dataSource
.
setMinPoolSize
(
ds
.
getMaxIdle
());
// 增加校验
// 增加校验
...
@@ -131,7 +131,7 @@ public class ResourceFactory {
...
@@ -131,7 +131,7 @@ public class ResourceFactory {
dataSource
.
setDriverClass
(
SlicePropertiesBuilder
.
driver_h2
);
dataSource
.
setDriverClass
(
SlicePropertiesBuilder
.
driver_h2
);
dataSource
.
setPreferredTestQuery
(
SlicePropertiesBuilder
.
validationQueryOfUrl
(
url
));
dataSource
.
setPreferredTestQuery
(
SlicePropertiesBuilder
.
validationQueryOfUrl
(
url
));
dataSource
.
setUser
(
"sa"
);
dataSource
.
setUser
(
"sa"
);
dataSource
.
setPassword
(
C
rypto
.
plainTextPassword
(
Config
.
token
().
getPassword
()
));
dataSource
.
setPassword
(
C
onfig
.
token
().
getPassword
(
));
dataSource
.
setMaxPoolSize
(
entry
.
getValue
().
getMaxTotal
());
dataSource
.
setMaxPoolSize
(
entry
.
getValue
().
getMaxTotal
());
dataSource
.
setMinPoolSize
(
entry
.
getValue
().
getMaxIdle
());
dataSource
.
setMinPoolSize
(
entry
.
getValue
().
getMaxIdle
());
dataSource
.
setAcquireIncrement
(
2
);
dataSource
.
setAcquireIncrement
(
2
);
...
...
o2server/x_console/src/main/java/com/x/server/console/action/Decrypt.java
浏览文件 @
f6202ba2
...
@@ -9,7 +9,7 @@ public class Decrypt {
...
@@ -9,7 +9,7 @@ public class Decrypt {
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
Decrypt
.
class
);
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
Decrypt
.
class
);
public
boolean
execute
(
String
text
)
throws
Exception
{
public
boolean
execute
(
String
text
)
throws
Exception
{
logger
.
print
(
"decrypt text:{}"
,
Crypto
.
plainText
Password
(
text
));
logger
.
print
(
"decrypt text:{}"
,
Crypto
.
plainText
(
text
));
return
true
;
return
true
;
}
}
...
...
o2server/x_console/src/main/java/com/x/server/console/server/data/DataServerTools.java
浏览文件 @
f6202ba2
...
@@ -20,7 +20,7 @@ public class DataServerTools {
...
@@ -20,7 +20,7 @@ public class DataServerTools {
FileUtils
.
forceMkdir
(
dataBaseDir
);
FileUtils
.
forceMkdir
(
dataBaseDir
);
Server
tcpServer
=
null
;
Server
tcpServer
=
null
;
Server
webServer
=
null
;
Server
webServer
=
null
;
String
password
=
C
rypto
.
plainTextPassword
(
Config
.
token
().
getPassword
()
);
String
password
=
C
onfig
.
token
().
getPassword
(
);
String
[]
tcps
=
new
String
[
9
];
String
[]
tcps
=
new
String
[
9
];
tcps
[
0
]
=
"-tcp"
;
tcps
[
0
]
=
"-tcp"
;
tcps
[
1
]
=
"-tcpAllowOthers"
;
tcps
[
1
]
=
"-tcpAllowOthers"
;
...
...
o2server/x_console/src/main/java/com/x/server/console/server/storage/StorageServerTools.java
浏览文件 @
f6202ba2
...
@@ -24,6 +24,7 @@ import com.x.base.core.project.config.StorageServer;
...
@@ -24,6 +24,7 @@ import com.x.base.core.project.config.StorageServer;
import
com.x.base.core.project.config.StorageServer.Account
;
import
com.x.base.core.project.config.StorageServer.Account
;
import
com.x.base.core.project.logger.Logger
;
import
com.x.base.core.project.logger.Logger
;
import
com.x.base.core.project.logger.LoggerFactory
;
import
com.x.base.core.project.logger.LoggerFactory
;
import
com.x.base.core.project.tools.Crypto
;
public
class
StorageServerTools
{
public
class
StorageServerTools
{
...
@@ -82,11 +83,6 @@ public class StorageServerTools {
...
@@ -82,11 +83,6 @@ public class StorageServerTools {
}
}
private
static
UserManager
calculateUserManager
(
List
<
Account
>
list
)
throws
Exception
{
private
static
UserManager
calculateUserManager
(
List
<
Account
>
list
)
throws
Exception
{
// if (ListTools.isNotEmpty(list)) {
// return concreteUserManager(list);
// } else {
// return concreteDefaultUserManager();
// }
return
concreteUserManager
(
list
);
return
concreteUserManager
(
list
);
}
}
...
@@ -116,27 +112,4 @@ public class StorageServerTools {
...
@@ -116,27 +112,4 @@ public class StorageServerTools {
return
userManager
;
return
userManager
;
}
}
// private static UserManager concreteDefaultUserManager() throws Exception
// {
// List<BaseUser> users = new ArrayList<>();
// for (StorageType o : StorageType.values()) {
// BaseUser user = new BaseUser();
// user.setEnabled(true);
// user.setName(o.toString());
// user.setPassword(Config.password());
// File file = new File(Config.base(), "local/repository/storage/" +
// o.toString());
// FileUtils.forceMkdir(file);
// user.setHomeDirectory(file.getAbsolutePath());
// user.setMaxIdleTime(0);
// List<Authority> authorities = new ArrayList<Authority>();
// authorities.add(new WritePermission());
// authorities.add(new ConcurrentLoginPermission(0, 0));
// authorities.add(new TransferRatePermission(0, 0));
// user.setAuthorities(authorities);
// users.add(user);
// }
// StorageUserManager userManager = new StorageUserManager(users);
// return userManager;
// }
}
}
\ No newline at end of file
o2server/x_organization_assemble_authentication/src/main/java/com/x/organization/assemble/authentication/jaxrs/authentication/ActionCaptchaLogin.java
浏览文件 @
f6202ba2
...
@@ -64,7 +64,7 @@ class ActionCaptchaLogin extends BaseAction {
...
@@ -64,7 +64,7 @@ class ActionCaptchaLogin extends BaseAction {
}
}
}
}
if
(
Config
.
token
().
isInitialManager
(
credential
))
{
if
(
Config
.
token
().
isInitialManager
(
credential
))
{
if
(!
StringUtils
.
equals
(
C
rypto
.
plainTextPassword
(
Config
.
token
().
getPassword
()
),
password
))
{
if
(!
StringUtils
.
equals
(
C
onfig
.
token
().
getPassword
(
),
password
))
{
throw
new
ExceptionPersonNotExistOrInvalidPassword
();
throw
new
ExceptionPersonNotExistOrInvalidPassword
();
}
}
wo
=
this
.
manager
(
request
,
response
,
business
,
Wo
.
class
);
wo
=
this
.
manager
(
request
,
response
,
business
,
Wo
.
class
);
...
...
o2server/x_organization_assemble_authentication/src/main/java/com/x/organization/assemble/authentication/jaxrs/authentication/ActionLogin.java
浏览文件 @
f6202ba2
...
@@ -43,7 +43,7 @@ class ActionLogin extends BaseAction {
...
@@ -43,7 +43,7 @@ class ActionLogin extends BaseAction {
throw
new
ExceptionPasswordEmpty
();
throw
new
ExceptionPasswordEmpty
();
}
}
if
(
Config
.
token
().
isInitialManager
(
credential
))
{
if
(
Config
.
token
().
isInitialManager
(
credential
))
{
if
(!
StringUtils
.
equals
(
C
rypto
.
plainTextPassword
(
Config
.
token
().
getPassword
()
),
password
))
{
if
(!
StringUtils
.
equals
(
C
onfig
.
token
().
getPassword
(
),
password
))
{
throw
new
ExceptionPersonNotExistOrInvalidPassword
();
throw
new
ExceptionPersonNotExistOrInvalidPassword
();
}
}
wo
=
this
.
manager
(
request
,
response
,
business
,
Wo
.
class
);
wo
=
this
.
manager
(
request
,
response
,
business
,
Wo
.
class
);
...
...
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/adminlogin/ActionLogin.java
浏览文件 @
f6202ba2
...
@@ -14,6 +14,7 @@ import com.x.base.core.project.http.ActionResult;
...
@@ -14,6 +14,7 @@ import com.x.base.core.project.http.ActionResult;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.http.HttpToken
;
import
com.x.base.core.project.http.HttpToken
;
import
com.x.base.core.project.http.TokenType
;
import
com.x.base.core.project.http.TokenType
;
import
com.x.base.core.project.tools.Crypto
;
class
ActionLogin
extends
BaseAction
{
class
ActionLogin
extends
BaseAction
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
HttpServletRequest
request
,
HttpServletResponse
response
,
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
HttpServletRequest
request
,
HttpServletResponse
response
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录