MDL-79675 enrol_lti: migrate validate() calls to initialize() per v6.0.0

Calls to validate() have been replaced in v6.0.0.
https://github.com/packbackbooks/lti-1-3-php-library/releases/tag/v6.0.0
This commit is contained in:
Jake Dallimore 2024-01-18 16:49:10 +08:00
parent 7560375ad6
commit f7c12a372d
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ $cookie = new lti_cookie();
$serviceconnector = new LtiServiceConnector($sesscache, new http_client());
if ($idtoken) {
$messagelaunch = LtiMessageLaunch::new($issdb, $sesscache, $cookie, $serviceconnector)
->validate();
->initialize($_POST);
}
if ($launchid) {
$messagelaunch = LtiMessageLaunch::fromCache($launchid, $issdb, $sesscache, $serviceconnector);

View File

@ -62,7 +62,7 @@ $cookie = new lti_cookie();
$serviceconnector = new LtiServiceConnector($sesscache, new http_client());
if ($idtoken) {
$messagelaunch = LtiMessageLaunch::new($issdb, $sesscache, $cookie, $serviceconnector)
->validate();
->initialize($_POST);
}
if ($launchid) {
$messagelaunch = LtiMessageLaunch::fromCache($launchid, $issdb, $sesscache, $serviceconnector);