Skip to content

Commit

Permalink
Prevent session fixation
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Nov 27, 2023
1 parent 55dbade commit 483155c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/login.php
Expand Up @@ -94,6 +94,7 @@
&& (!isset($t) || $t['attempts'] < 5)
)
{
session_regenerate_id();
setSession('account', $account_logged->getId());
setSession('password', encrypt(($config_salt_enabled ? $account_logged->getCustomField('salt') : '') . $login_password));
if($remember_me) {
Expand Down

0 comments on commit 483155c

Please sign in to comment.