From 41b0b76143452e1f1b34a2751da252e6f674de72 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Fri, 5 Feb 2016 21:48:11 +0000
Subject: [PATCH] Always register AuthTokenAuthentication

---
 include/class.auth.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/class.auth.php b/include/class.auth.php
index a106d6a4c..a924d9cd5 100644
--- a/include/class.auth.php
+++ b/include/class.auth.php
@@ -1126,8 +1126,7 @@ class AuthTokenAuthentication extends UserAuthenticationBackend {
 
 }
 
-if ($cfg && $cfg->isAuthTokenEnabled())
-    UserAuthenticationBackend::register('AuthTokenAuthentication');
+UserAuthenticationBackend::register('AuthTokenAuthentication');
 
 //Simple ticket lookup backend used to recover ticket access link.
 // We're using authentication backend so we can guard aganist brute force
-- 
GitLab