. /** * Upgrade script. * * @package auth_jwt * @copyright 2018 Dmitrii Metelkin (dmitriim@catalyst-au.net), 2024 Kumi Systems e.U. * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * Upgrade hook. * * @param string $oldversion Old version of the plugin. * @return bool */ function xmldb_auth_jwt_upgrade($oldversion) { global $DB; if ($oldversion < 2018050200) { // Confirm all previously created users. $DB->execute("UPDATE {user} SET confirmed=? WHERE auth=?", array(1, 'jwt')); upgrade_plugin_savepoint(true, 2018050200, 'auth', 'jwt'); } return true; }