mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
MDL-58374 lti: Log the error message of a failed message verification
Previously the exception message (which holds the actual explanation of what went wrong) was thrown away so the user had no way to debug.
This commit is contained in:
parent
bd99cb9021
commit
2937aa56cb
@ -250,6 +250,7 @@ function lti_verify_message($key, $sharedsecrets, $body, $headers = null) {
|
||||
// TODO: Switch to core oauthlib once implemented - MDL-30149.
|
||||
lti\handle_oauth_body_post($key, $secret, $body, $headers);
|
||||
} catch (Exception $e) {
|
||||
debugging('LTI message verification failed: '.$e->getMessage());
|
||||
$signaturefailed = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user