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
55c8d954
Commit
55c8d954
authored
Dec 15, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
密码长度为题
parent
c0b0b78d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Member.php
application/models/DAO/Member.php
+8
-8
No files found.
application/models/DAO/Member.php
View file @
55c8d954
...
...
@@ -402,8 +402,8 @@ class MemberModel extends \DAO\AbstractModel
public
function
checkChangedInfo
(
$where
)
{
$this
->
checkRegisterMobile
(
$where
);
if
(
!
\Our\Validate
::
checkPassword
(
$where
[
'password'
]))
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
passwordLimit
);
if
(
!
\Our\Validate
::
checkPassword
Len
(
$where
[
'password'
]))
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
passwordL
enL
imit
);
}
}
...
...
@@ -495,8 +495,8 @@ class MemberModel extends \DAO\AbstractModel
*/
public
function
checkWxBindMobile
(
$where
){
$this
->
checkWxBindMobileCommon
(
$where
);
if
(
!
\Our\Validate
::
checkPassword
(
$where
[
'password'
]))
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
passwordLimit
);
if
(
!
\Our\Validate
::
checkPassword
Len
(
$where
[
'password'
]))
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
passwordL
enL
imit
);
}
}
...
...
@@ -509,8 +509,8 @@ class MemberModel extends \DAO\AbstractModel
if
(
$data
[
'password'
]
!=
$data
[
'rePassword'
])
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
differentPasswordAndRepassword
);
}
if
(
!
\Our\Validate
::
checkPassword
(
$data
[
'password'
]))
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
passwordLimit
);
if
(
!
\Our\Validate
::
checkPassword
Len
(
$data
[
'password'
]))
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
passwordL
enL
imit
);
}
}
...
...
@@ -687,8 +687,8 @@ class MemberModel extends \DAO\AbstractModel
}
}
public
function
validPassword
(
$where
){
if
(
!
\Our\Validate
::
checkPassword
(
$where
[
'password'
]))
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
passwordLimit
);
if
(
!
\Our\Validate
::
checkPassword
Len
(
$where
[
'password'
]))
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
passwordL
enL
imit
);
}
}
...
...
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