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(); }