Skip to content

Commit

Permalink
MDL-20948 proper removal of cached pasword hashes just in case upgrad…
Browse files Browse the repository at this point in the history
…ing from <1.9.7
  • Loading branch information
skodak committed Nov 24, 2009
1 parent 45e6ecd commit 9d0de27
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions auth/cas/db/install.php
Original file line number Diff line number Diff line change
@@ -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'));

}
3 changes: 3 additions & 0 deletions auth/cas/version.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

$plugin->version = 2009112400;

0 comments on commit 9d0de27

Please sign in to comment.