summaryrefslogtreecommitdiffstats
path: root/modules-available/session/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2023-01-05 15:06:48 +0100
committerSimon Rettberg2023-01-05 15:06:48 +0100
commit2b40b23f14f2e23b8bb1a2b09f188d9eceea2d27 (patch)
treedb7d6748a70ea559da9a6d6f44df781ecb971f69 /modules-available/session/page.inc.php
parent[main] Remove "Change Password" in menu; make username a link instead (diff)
downloadslx-admin-2b40b23f14f2e23b8bb1a2b09f188d9eceea2d27.tar.gz
slx-admin-2b40b23f14f2e23b8bb1a2b09f188d9eceea2d27.tar.xz
slx-admin-2b40b23f14f2e23b8bb1a2b09f188d9eceea2d27.zip
[session] Add checkbox to log out all other sessions on pw change
Diffstat (limited to 'modules-available/session/page.inc.php')
-rw-r--r--modules-available/session/page.inc.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/session/page.inc.php b/modules-available/session/page.inc.php
index 66f672f0..71f24886 100644
--- a/modules-available/session/page.inc.php
+++ b/modules-available/session/page.inc.php
@@ -48,6 +48,9 @@ class Page_Session extends Page
Message::addError('adduser.password-mismatch');
Util::redirect('?do=session');
}
+ if (Request::post('kill-other-sessions', false, 'bool')) {
+ Session::deleteAllButCurrent();
+ }
if (User::updatePassword($new)) {
Message::addSuccess('password-changed');
} else {