From a647e7d762cf071bf36fc3d1be26aa81f511ea12 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Wed, 5 Apr 2017 14:11:12 +0800 Subject: [PATCH] MDL-58220 oauth2: missing param confirmtokenexpires --- auth/oauth2/classes/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/auth/oauth2/classes/api.php b/auth/oauth2/classes/api.php index 952d3d36325..430abeef8d3 100644 --- a/auth/oauth2/classes/api.php +++ b/auth/oauth2/classes/api.php @@ -126,6 +126,7 @@ class api { } $record->email = $userinfo['email']; $record->confirmtoken = ''; + $record->confirmtokenexpires = 0; $linkedlogin = new linked_login(0, $record); return $linkedlogin->create(); }