fix logout error
authorrautenberg <rautenberg@in-silico.ch>
Thu, 29 Mar 2012 16:08:26 +0000 (18:08 +0200)
committerrautenberg <rautenberg@in-silico.ch>
Thu, 29 Mar 2012 16:08:26 +0000 (18:08 +0200)
lib/authorization.rb

index 33fa0a4..a6d584c 100644 (file)
@@ -101,6 +101,8 @@ module OpenTox
       return true if !AA
       begin
         return true if RestClientWrapper.post("#{AA}/auth/isTokenValid",:tokenid => subjectid) == "boolean=true\n"
+      rescue
+        return false
       end
       return false
     end