Skip to content

Commit

Permalink
unbanned user = not verified status
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmi08 committed Feb 2, 2024
1 parent fa62e89 commit c75b352
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 c75b352

Please sign in to comment.