aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/users.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/users.php')
-rw-r--r--engine/lib/users.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 0857c520a..801eb862b 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -481,7 +481,11 @@ function ban_user($user_guid, $reason = "") {
if ($reason) {
create_metadata($user_guid, 'ban_reason', $reason,'', 0, ACCESS_PUBLIC);
}
-
+
+ // clear "remember me" cookie code so user cannot login in using it
+ $user->code = "";
+ $user->save();
+
// Set ban flag
return update_data("UPDATE {$CONFIG->dbprefix}users_entity set banned='yes' where guid=$user_guid");
}