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