From f4bb730aa9cd90dbbccd765258561a7fb5c4664f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 8 Feb 2013 12:50:28 +0100 Subject: [PATCH] Improved OTRS auth backend. --- lib/auth/otrs.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/auth/otrs.rb b/lib/auth/otrs.rb index ee7c4c426..a0ad88336 100644 --- a/lib/auth/otrs.rb +++ b/lib/auth/otrs.rb @@ -1,10 +1,11 @@ +require 'import/otrs' module Auth end module Auth::OTRS def self.check( username, password, config, user ) endpoint = Setting.get('import_otrs_endpoint') - return false if !endpoint || endpoint.empty? + return false if !endpoint || endpoint.empty? || endpoint == 'http://otrs_host/otrs' # connect to OTRS result = Import::OTRS.auth( username, password )