summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-06-22 18:51:00 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-06-22 18:51:00 +0200
commit880f62faf63b666adcc1d6aec6a8ead3edb18f59 (patch)
tree87752d54167903f0fa7dcd6edc049a33d8a038ee /lib/exe/js.php
parent2380e8a8af37991018a772ad4a619c6f5c683629 (diff)
downloadrpg-880f62faf63b666adcc1d6aec6a8ead3edb18f59.tar.gz
rpg-880f62faf63b666adcc1d6aec6a8ead3edb18f59.tar.bz2
new auth capability 'logout'
This patch implements what Adrian's patch "Hide logout button if auth backend cannot logout" intended to do. The 'logoff' capability was used to decide if a special method called $auth->logOff() should be called when the user logs out, not if the backend supports logouts at all. This was a superflous capability since an empty logOff() method is implemented in the base class anyway - it doesn't hurt to always call the method. The 'logoff' capability is now deprecated. Backends who want to do actions on logout simply need to overwrite logOff(). A new capability 'logout' was added which defaults to true. Backends that can't logoff the user (eg. because they use some automatic login/logoff mechanism) can set this to false. Probably makes sense to add a 'login' capability as well...
Diffstat (limited to 'lib/exe/js.php')
0 files changed, 0 insertions, 0 deletions