1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-04 02:14:06 +02:00

split off infocontroller

This commit is contained in:
Robin Appelman 2017-03-21 00:04:32 +01:00
commit 66d177e23a
6 changed files with 55 additions and 36 deletions

View file

@ -19,7 +19,7 @@ class AuthProvider extends BaseProvider {
}
public function setUser($token, \SteamId $steamid, $key) {
apc_store($token, [
apcu_store($token, [
'name' => $steamid->getNickname(),
'steamid' => $steamid->getSteamId64(),
'key' => $key
@ -28,8 +28,8 @@ class AuthProvider extends BaseProvider {
public function getUser($token) {
$found = true;
$result = apc_fetch($token, $found);
return ($found) ? $result : ['name' => null, 'steamid' => null, 'key' => null];
$result = apcu_fetch($token, $found);
return $found ? $result : ['name' => null, 'steamid' => null, 'key' => null];
}
public function logout($token) {