Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
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
Plain Diff
Browse Files
Authored by
毕凯
8 years ago
Commit
c9ca3e3089ea5d68ea6c0fb2eba13a2acc2ab95a
2 parents
c96fc5f3
afc922cb
Merge branch 'gray'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
library/Action/AbstractAction.php
library/Action/AbstractAction.php
View file @
c9ca3e3
...
...
@@ -354,7 +354,6 @@ class AbstractAction extends Controller_Abstract
$useSession
=
false
;
}
//$useSession = false;
if
(
!
$this
->
_uid
)
{
$cookie
=
$this
->
getCookie
(
'_UID'
);
// 兼容老的
...
...
@@ -363,11 +362,9 @@ class AbstractAction extends Controller_Abstract
$cookieList
[
1
]
=
intval
(
Encryption
::
decrypt
(
$cookieList
[
1
]));
if
(
isset
(
$cookieList
[
1
])
&&
$cookieList
[
1
])
{
if
(
$useSession
)
{
$token
=
$this
->
getSession
(
'_TOKEN'
);
if
(
empty
(
$token
))
{
$token
=
$this
->
getCookie
(
'_TOKEN'
);
}
if
(
$token
===
Helpers
::
makeToken
(
$cookieList
[
1
]))
{
$token
=
$this
->
getCookie
(
'_TOKEN'
);
$salt
=
substr
(
$token
,
-
8
);
if
(
$cookieList
[
3
]
===
Helpers
::
makeToken
(
$cookieList
[
1
]
.
$salt
))
{
$this
->
_uid
=
$cookieList
[
1
];
}
}
else
{
...
...
Please
register
or
login
to post a comment