mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-24 14:04:07 +08:00
fixed invalid token
This commit is contained in:
parent
917306dbe9
commit
03b7e4e83b
4
ajax.php
4
ajax.php
@ -3,7 +3,7 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-01-16 23:01:33
|
||||
* @Last Modified by: prpr
|
||||
* @Last Modified time: 2016-02-02 23:28:03
|
||||
* @Last Modified time: 2016-02-03 10:26:40
|
||||
*
|
||||
* All ajax requests will be handled here
|
||||
*/
|
||||
@ -73,7 +73,7 @@ if ($action == "login") {
|
||||
}
|
||||
}
|
||||
} else if ($action == "upload") {
|
||||
if ($_SESSION['token'] == $user->getToken()) {
|
||||
if (utils::getValue('token', $_SESSION) == $user->getToken()) {
|
||||
if (checkFile()) {
|
||||
if ($file = utils::getValue('skin_file', $_FILES)) {
|
||||
if ($user->setTexture('skin', $file)) {
|
||||
|
Loading…
Reference in New Issue
Block a user