Permalink
Browse files

If the identity provider changes then delete all the rest user_access…

…_keys, as they are no longer valid. (i.e. all the related users have been deleted.)
  • Loading branch information...
1 parent 1d91e1b commit fef5cf9865962ce9fed583752c0671a0a5e090cf @talmdal talmdal committed Jun 7, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 modules/rest/helpers/rest_event.php
@@ -29,6 +29,13 @@ static function user_before_delete($user) {
->execute();
}
+
+ static function change_provider($new_provider) {
+ db::build()
+ ->delete("user_access_keys")
+ ->execute();
+ }
+
/**
* Called after a user has been added. Just add a remote access key
* on every add.

0 comments on commit fef5cf9

Please sign in to comment.