Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
3300d9554b35be4e7cb8ac7fbfcc8ba1321fd7dd
1 parent
038b79f6
限制对输入新密码页面的访问
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Back.php
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Back.php
View file @
3300d95
...
...
@@ -209,7 +209,7 @@ class BackController extends AbstractAction
'phoneNum'
=>
$phoneNum
);
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货
'
);
$this
->
setTitle
(
'找回密码-通过手机号
'
);
$this
->
_view
->
display
(
'mobile-code'
,
$data
);
}
...
...
@@ -246,6 +246,11 @@ class BackController extends AbstractAction
// 邮箱验证码
$code
=
$this
->
get
(
'code'
,
''
);
// 判断是否允许访问, 不允许则跳转到错误页面
if
((
!
$token
||
!
Helpers
::
verifyMobile
(
$phoneNum
))
&&
!
$code
)
{
$this
->
error
();
}
$data
=
array
(
'backUrl'
=>
'/signin.html'
,
...
...
@@ -258,7 +263,7 @@ class BackController extends AbstractAction
'code'
=>
$code
);
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货
'
);
$this
->
setTitle
(
'找回密码-输入新密码
'
);
$this
->
_view
->
display
(
'new-password'
,
$data
);
}
...
...
Please
register
or
login
to post a comment