mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-26 04:43:45 +00:00
ProcessLoginTask: fixed backport errors
This commit is contained in:
parent
4e646d19a4
commit
2709dd359c
@ -156,7 +156,7 @@ class ProcessLoginTask extends AsyncTask{
|
|||||||
$signingKeyOpenSSL = JwtUtils::parseDerPublicKey($headerDerKey);
|
$signingKeyOpenSSL = JwtUtils::parseDerPublicKey($headerDerKey);
|
||||||
}catch(JwtException $e){
|
}catch(JwtException $e){
|
||||||
//TODO: we shouldn't be showing this internal information to the client
|
//TODO: we shouldn't be showing this internal information to the client
|
||||||
throw new VerifyLoginException("Invalid JWT public key: " . $e->getMessage(), null, 0, $e);
|
throw new VerifyLoginException("Invalid JWT public key: " . $e->getMessage(), 0, $e);
|
||||||
}
|
}
|
||||||
try{
|
try{
|
||||||
if(!JwtUtils::verify($jwt, $signingKeyOpenSSL)){
|
if(!JwtUtils::verify($jwt, $signingKeyOpenSSL)){
|
||||||
@ -200,7 +200,7 @@ class ProcessLoginTask extends AsyncTask{
|
|||||||
//verify key format and parameters
|
//verify key format and parameters
|
||||||
JwtUtils::parseDerPublicKey($identityPublicKey);
|
JwtUtils::parseDerPublicKey($identityPublicKey);
|
||||||
}catch(JwtException $e){
|
}catch(JwtException $e){
|
||||||
throw new VerifyLoginException("Invalid identityPublicKey: " . $e->getMessage(), null, 0, $e);
|
throw new VerifyLoginException("Invalid identityPublicKey: " . $e->getMessage(), 0, $e);
|
||||||
}
|
}
|
||||||
$currentPublicKey = $identityPublicKey; //if there are further links, the next link should be signed with this
|
$currentPublicKey = $identityPublicKey; //if there are further links, the next link should be signed with this
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user