Skip to content
Snippets Groups Projects
Unverified Commit 6fcef7d2 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4162 from JediKev/issue/prevent-account-takeover

oops: Prevent Account Takeover
parents 22cb8611 be0133b0
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,12 @@
require 'secure.inc.php';
require_once 'class.user.php';
// Check if User is Guest. If so, redirect them back to ticket page to
// prevent Account Takeover.
if ($thisclient->isGuest())
Http::redirect('tickets.php');
$user = User::lookup($thisclient->getId());
if ($user && $_POST) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment