Skip to content

Commit

Permalink
Merge pull request #5182 from Jimmi08/patch-1
Browse files Browse the repository at this point in the history
Fixes #5181 unbanned user = not verified status
  • Loading branch information
CaMer0n committed May 10, 2024
2 parents 3355c27 + c75b352 commit 070d5d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e107_admin/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,11 @@ public function ListUnbanTrigger($userid)
}

$row = e107::user($userid);

$sysuser->set('user_ban', 2)
->set('user_sess', e_user_model::randomKey())
->save();

$sql->update("user", "user_ban='0' WHERE user_id='".$userid."' ");
$sql->delete("banlist"," banlist_ip='{$row['user_ip']}' ");

$vars = array('x'=>$sysuser->getId(), 'y'=> $sysuser->getName(), 'z'=> $sysuser->getValue('email'));
Expand Down

0 comments on commit 070d5d6

Please sign in to comment.