diff options
author | mr <mr@mrautenberg.de> | 2011-02-09 15:53:46 +0100 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-02-09 15:53:46 +0100 |
commit | 4109a5256e953a9962a6e46acb074b2d7d8d2bd9 (patch) | |
tree | be1e1e2718b65b7a0068ccd4702b317ea99e2f48 /lib/authorization.rb | |
parent | e4a32e37ab8708aa8ae4dbfc6069e5ea75928f3f (diff) |
minor fix
Diffstat (limited to 'lib/authorization.rb')
-rw-r--r-- | lib/authorization.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/authorization.rb b/lib/authorization.rb index 16f1ee4..b647bca 100644 --- a/lib/authorization.rb +++ b/lib/authorization.rb @@ -58,7 +58,7 @@ module OpenTox # @param [String, String]Username,Password # @return [String, nil] gives subjectid or nil def self.authenticate(user, pw) - return true if !AA_SERVER + return nil if !AA_SERVER begin resource = RestClient::Resource.new("#{AA_SERVER}/auth/authenticate") out = resource.post(:username=>user, :password => pw).sub("token.id=","").sub("\n","") |