1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-25 06:03:36 +03:00

bug #3704: session tokens are correctly stored

(cherry picked from commit db6be6454c57e914efcc91cd695bdac7609dd301)
This commit is contained in:
Ruben S. Montero 2015-03-21 17:20:48 +01:00
parent d3b377a97d
commit 233ce7b0ba
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ class OneUserHelper < OpenNebulaHelper::OneHelper
user = OpenNebula::User.new(User.build_xml, login_client)
token_oned = user.login(username, token, options[:time])
token_oned = user.login(username, "", options[:time])
return -1, token_oned.message if OpenNebula.is_error?(token_oned)

View File

@ -46,7 +46,7 @@ const std::string& LoginToken::set(const std::string& user_token, time_t valid)
expiration_time = 0;
}
if (user_token.empty())
if (!user_token.empty())
{
token = user_token;
}