From 11ff582c6dffd54d4ed6cb5822594da0fd826ccc Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 1 Feb 2013 07:31:57 +0100 Subject: [PATCH] Only use OTRS auth backend if endpoint exists. --- lib/auth/otrs.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/auth/otrs.rb b/lib/auth/otrs.rb index 8b604c70e..5b178d99b 100644 --- a/lib/auth/otrs.rb +++ b/lib/auth/otrs.rb @@ -1,6 +1,9 @@ class Auth::OTRS def self.check( user, username, password, config ) + endpoint = Setting.get('import_otrs_endpoint') + return false if !endpoint || endpoint.empty? + # connect to OTRS result = Import::OTRS.auth( username, password ) return false if !result