Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
8 years ago
Commit
7eb1851e70c15dd8d41dcfc2fb3db8f85e291581
1 parent
7db78f33
'token-salt-debug'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
library/Action/WebAction.php
library/Action/WebAction.php
View file @
7eb1851
...
...
@@ -417,15 +417,12 @@ class WebAction 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
{
}
else
{
$this
->
_uid
=
$cookieList
[
1
];
}
$this
->
_uname
=
$cookieList
[
0
];
...
...
Please
register
or
login
to post a comment