mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
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:
parent
7560375ad6
commit
f7c12a372d
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user