summaryrefslogtreecommitdiff
path: root/lib/opentox-client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/opentox-client.rb')
-rw-r--r--lib/opentox-client.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/opentox-client.rb b/lib/opentox-client.rb
index 8683d0f..7c48d9c 100644
--- a/lib/opentox-client.rb
+++ b/lib/opentox-client.rb
@@ -53,17 +53,5 @@ FALSE_REGEXP = /^(false|inactive|0|0.0|low tox|deactivating|non-carcinogen|non-m
if defined?($aa) and $aa[:uri]
OpenTox::RestClientWrapper.subjectid = OpenTox::Authorization.authenticate($aa[:user],$aa[:password])
unauthorized_error "Failed to authenticate user \"#{$aa[:user]}\"." unless OpenTox::Authorization.is_token_valid(OpenTox::RestClientWrapper.subjectid)
-#else
- #@@subjectid = nil
end
-=begin
-module OpenTox
- if defined?($aa) and $aa[:uri]
- SUBJECTID = OpenTox::Authorization.authenticate($aa[:user],$aa[:password])
- unauthorized_error "Failed to authenticate user \"#{$aa[:user]}\"." unless OpenTox::Authorization.is_token_valid(SUBJECTID)
- else
- SUBJECTID = nil
- end
-end
-=end