Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
8e62b868
Commit
8e62b868
authored
Jul 02, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/education
parents
460789f7
79a51646
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
UserInfoController.cs
Edu.WebApi/Controllers/User/UserInfoController.cs
+12
-2
No files found.
Edu.WebApi/Controllers/User/UserInfoController.cs
View file @
8e62b868
...
...
@@ -66,6 +66,10 @@ namespace Edu.WebApi.Controllers.User
var
OldPassWord
=
base
.
ParmJObj
.
GetStringValue
(
"OldPassWord"
);
var
NewPassWord
=
base
.
ParmJObj
.
GetStringValue
(
"NewPassWord"
);
var
NewSurePassWord
=
base
.
ParmJObj
.
GetStringValue
(
"NewSurePassWord"
);
if
(
string
.
IsNullOrWhiteSpace
(
OldPassWord
)
||
string
.
IsNullOrWhiteSpace
(
NewPassWord
)
||
string
.
IsNullOrWhiteSpace
(
NewSurePassWord
))
{
return
ApiResult
.
Failed
(
message
:
"请输入密码"
);
}
if
(
OldPassWord
.
Equals
(
NewPassWord
))
{
return
ApiResult
.
Failed
(
message
:
"新密码与旧密码不能一致"
);
...
...
@@ -77,6 +81,10 @@ namespace Edu.WebApi.Controllers.User
{
return
ApiResult
.
Failed
(
message
:
"员工信息不存在"
);
}
if
(
extModel
.
Password
!=
Common
.
DES
.
Encrypt
(
OldPassWord
))
{
return
ApiResult
.
Failed
(
message
:
"旧密码输入错误"
);
}
if
(
extModel
.
Password
==
Common
.
DES
.
Encrypt
(
NewSurePassWord
))
{
return
ApiResult
.
Failed
(
message
:
"新密码与旧密码不能一致"
);
...
...
@@ -99,7 +107,7 @@ namespace Edu.WebApi.Controllers.User
bool
result
=
accountModule
.
SetBatchResetPassword
(
list
,
NewPassWord
);
if
(
result
)
{
return
ApiResult
.
Failed
(
message
:
"更新密码成功"
);
return
ApiResult
.
Success
(
message
:
"更新密码成功"
);
}
else
{
...
...
@@ -245,7 +253,9 @@ namespace Edu.WebApi.Controllers.User
#
endregion
#
endregion
return
ApiResult
.
Success
(
""
,
new
{
EmployeeListResult
=
employeeListResult
,
return
ApiResult
.
Success
(
""
,
new
{
EmployeeListResult
=
employeeListResult
,
OrderNoCompleteNum
=
orderList
.
Count
(),
CourseNum
=
guestList
.
Count
(),
TotalCommiommission
=
totalCommiommission
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment