Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
ClientServerProject
提交
4fc472fc
C
ClientServerProject
项目概览
jobily
/
ClientServerProject
2023-09-12 01:32:09同步失败
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClientServerProject
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4fc472fc
编写于
7月 24, 2017
作者:
Richard__Hu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
适配登录方式传送机制
上级
417dc64f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
13 addition
and
5 deletion
+13
-5
CommonLibrary/AccountSupport/UserAccount.cs
CommonLibrary/AccountSupport/UserAccount.cs
+4
-0
软件系统客户端Wpf/LoginWindow.xaml.cs
软件系统客户端Wpf/LoginWindow.xaml.cs
+2
-1
软件系统客户端模版/FormLogin.cs
软件系统客户端模版/FormLogin.cs
+3
-2
软件系统服务端模版/FormServerWindow.cs
软件系统服务端模版/FormServerWindow.cs
+2
-1
软件系统浏览器模版/Controllers/AccountController.cs
软件系统浏览器模版/Controllers/AccountController.cs
+2
-1
未找到文件。
CommonLibrary/AccountSupport/UserAccount.cs
浏览文件 @
4fc472fc
...
...
@@ -72,6 +72,10 @@ namespace CommonLibrary
/// </summary>
public
static
string
PasswordText
{
get
{
return
"Password"
;
}
}
/// <summary>
/// 用于存储和传送的名称
/// </summary>
public
static
string
LoginWayText
{
get
{
return
"LoginWay"
;
}
}
/// <summary>
/// 深度拷贝当前的账户信息
/// </summary>
/// <typeparam name="T">返回的类型,应该为继承后的类型</typeparam>
...
...
软件系统客户端Wpf/LoginWindow.xaml.cs
浏览文件 @
4fc472fc
...
...
@@ -147,7 +147,8 @@ namespace 软件系统客户端Wpf
JObject
json
=
new
JObject
{
{
UserAccount
.
UserNameText
,
new
JValue
(
UserName
)
},
{
UserAccount
.
PasswordText
,
new
JValue
(
UserPassword
)
}
{
UserAccount
.
PasswordText
,
new
JValue
(
UserPassword
)
},
{
UserAccount
.
LoginWayText
,
new
JValue
(
"wpf"
)
}
};
result
=
UserClient
.
Net_simplify_client
.
ReadFromServer
(
CommonLibrary
.
CommonHeadCode
.
SimplifyHeadCode
.
账户检查
,
json
.
ToString
());
if
(
result
.
IsSuccess
)
...
...
软件系统客户端模版/FormLogin.cs
浏览文件 @
4fc472fc
...
...
@@ -209,8 +209,9 @@ namespace 软件系统客户端模版
//包装数据
JObject
json
=
new
JObject
{
{
UserAccount
.
UserNameText
,
new
Newtonsoft
.
Json
.
Linq
.
JValue
(
textBox_userName
.
Text
)
},
{
UserAccount
.
PasswordText
,
new
Newtonsoft
.
Json
.
Linq
.
JValue
(
textBox_password
.
Text
)
}
{
UserAccount
.
UserNameText
,
new
JValue
(
textBox_userName
.
Text
)
},
{
UserAccount
.
PasswordText
,
new
JValue
(
textBox_password
.
Text
)
},
{
UserAccount
.
LoginWayText
,
new
JValue
(
"winform"
)
}
};
result
=
UserClient
.
Net_simplify_client
.
ReadFromServer
(
CommonLibrary
.
CommonHeadCode
.
SimplifyHeadCode
.
账户检查
,
json
.
ToString
());
if
(
result
.
IsSuccess
)
...
...
软件系统服务端模版/FormServerWindow.cs
浏览文件 @
4fc472fc
...
...
@@ -496,8 +496,9 @@ namespace 软件系统服务端模版
//提取账户,密码
string
name
=
SoftBasic
.
GetValueFromJsonObject
(
json
,
UserAccount
.
UserNameText
,
""
);
string
password
=
SoftBasic
.
GetValueFromJsonObject
(
json
,
UserAccount
.
PasswordText
,
""
);
string
way
=
SoftBasic
.
GetValueFromJsonObject
(
json
,
UserAccount
.
LoginWayText
,
"winform"
);
UserAccount
account
=
UserServer
.
ServerAccounts
.
CheckAccount
(
name
,
password
,
state
.
GetRemoteEndPoint
().
Address
.
ToString
());
UserAccount
account
=
UserServer
.
ServerAccounts
.
CheckAccount
(
name
,
password
,
state
.
GetRemoteEndPoint
().
Address
.
ToString
()
,
way
);
//检测是否重复登录
if
(
account
.
LoginEnable
)
{
...
...
软件系统浏览器模版/Controllers/AccountController.cs
浏览文件 @
4fc472fc
...
...
@@ -58,7 +58,8 @@ namespace 软件系统浏览器模版.Controllers
JObject
json
=
new
JObject
{
{
UserAccount
.
UserNameText
,
new
JValue
(
fc
[
"UserName"
])
},
{
UserAccount
.
PasswordText
,
new
JValue
(
fc
[
"UserPassword"
])
}
{
UserAccount
.
PasswordText
,
new
JValue
(
fc
[
"UserPassword"
])
},
{
UserAccount
.
LoginWayText
,
new
JValue
(
"webApp"
)
}
};
result
=
UserClient
.
Net_simplify_client
.
ReadFromServer
(
CommonLibrary
.
CommonHeadCode
.
SimplifyHeadCode
.
账户检查
,
json
.
ToString
());
if
(
result
.
IsSuccess
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录