]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20948 proper removal of cached pasword hashes just in case upgrading from <1.9.7
authorPetr Skoda <skodak@moodle.org>
Tue, 24 Nov 2009 14:26:22 +0000 (14:26 +0000)
committerPetr Skoda <skodak@moodle.org>
Tue, 24 Nov 2009 14:26:22 +0000 (14:26 +0000)
auth/cas/db/install.php [new file with mode: 0644]
auth/cas/version.php [new file with mode: 0644]

diff --git a/auth/cas/db/install.php b/auth/cas/db/install.php
new file mode 100644 (file)
index 0000000..ca412b1
--- /dev/null
@@ -0,0 +1,11 @@
+<?php
+
+function xmldb_auth_cas_install() {
+    global $CFG, $DB;
+
+    // upgrade from 1.9.x, introducing version.php
+
+    // remove cached passowrds, we do not need them for this plugin
+    $DB->set_field('user', 'password', 'not cached', array('auth'=>'cas'));
+
+}
diff --git a/auth/cas/version.php b/auth/cas/version.php
new file mode 100644 (file)
index 0000000..a744fca
--- /dev/null
@@ -0,0 +1,3 @@
+<?php
+
+$plugin->version = 2009112400;