mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Resolves #2. Implemented authlib-injector support
This commit is contained in:
@ -85,7 +85,7 @@ class SessionController extends Controller {
|
||||
$account = $hasJoinedForm->hasJoined();
|
||||
$textures = new Textures($account);
|
||||
|
||||
return $textures->getMinecraftResponse();
|
||||
return $textures->getMinecraftResponse(true);
|
||||
}
|
||||
|
||||
public function actionHasJoinedLegacy(): string {
|
||||
@ -109,11 +109,12 @@ class SessionController extends Controller {
|
||||
|
||||
/**
|
||||
* @param string $uuid
|
||||
* @param string $unsigned
|
||||
*
|
||||
* @return array|null
|
||||
* @throws IllegalArgumentException
|
||||
*/
|
||||
public function actionProfile(string $uuid): ?array {
|
||||
public function actionProfile(string $uuid, string $unsigned = null): ?array {
|
||||
try {
|
||||
$uuid = Uuid::fromString($uuid)->toString();
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
@ -127,7 +128,7 @@ class SessionController extends Controller {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (new Textures($account))->getMinecraftResponse();
|
||||
return (new Textures($account))->getMinecraftResponse($unsigned === 'false');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user