Merge branch 'MDL-58220-master-fix2' of http://github.com/damyon/moodle
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 5 Apr 2017 06:43:13 +0000 (14:43 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 5 Apr 2017 06:43:13 +0000 (14:43 +0800)
auth/oauth2/classes/api.php

index 952d3d3..430abee 100644 (file)
@@ -126,6 +126,7 @@ class api {
         }
         $record->email = $userinfo['email'];
         $record->confirmtoken = '';
+        $record->confirmtokenexpires = 0;
         $linkedlogin = new linked_login(0, $record);
         return $linkedlogin->create();
     }