Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
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
chenchuanwen
my-yaf-project
Commits
47dd9215
Commit
47dd9215
authored
Oct 23, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改密码旧密码加掩码
parent
2abfe990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Member.php
application/models/DAO/Member.php
+3
-2
No files found.
application/models/DAO/Member.php
100755 → 100644
View file @
47dd9215
...
@@ -489,8 +489,9 @@ class MemberModel extends \DAO\AbstractModel
...
@@ -489,8 +489,9 @@ class MemberModel extends \DAO\AbstractModel
if
(
!
$data
[
'oldPassword'
])
{
if
(
!
$data
[
'oldPassword'
])
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyOldPassword
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyOldPassword
);
}
}
$memberCurrent
=
$this
->
getOneByWhereWithField
(
array
(
'member_id'
=>
$memberId
),
'member_passwd'
);
$memberCurrent
=
$this
->
getOneByWhereWithField
(
array
(
'member_id'
=>
$memberId
),
'member_passwd,member_time'
);
if
(
!
(
$memberCurrent
&&
$memberCurrent
[
'member_passwd'
]
==
md5
(
$data
[
'oldPassword'
])))
{
$addKey
=
Common
::
getConfig
(
'password.key'
);
if
(
!
(
$memberCurrent
&&
$memberCurrent
[
'member_passwd'
]
==
md5
(
$memberCurrent
[
'member_time'
]
.
$data
[
'oldPassword'
]
.
$addKey
)))
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
worngOldPassword
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
worngOldPassword
);
}
}
$this
->
checkPassword
(
$data
);
$this
->
checkPassword
(
$data
);
...
...
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