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:
parent
d3b377a97d
commit
233ce7b0ba
@ -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)
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user