mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 16:40:07 +01:00
Merge branch 'MDL-70430-master-oauth2refreshtoken' of git://github.com/mudrd8mz/moodle
This commit is contained in:
commit
2a698951e5
@ -473,7 +473,7 @@ class client extends \oauth2_client {
|
||||
|
||||
// Store the access token and, if provided by the server, the new refresh token.
|
||||
$this->store_token($receivedtokens['access_token']);
|
||||
if (isset($receivedtokens['refreshtoken'])) {
|
||||
if (isset($receivedtokens['refresh_token'])) {
|
||||
$systemaccount->set('refreshtoken', $receivedtokens['refresh_token']->token);
|
||||
$systemaccount->update();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user