mirror of
https://github.com/OpenNebula/one.git
synced 2025-04-01 06:50:25 +03:00
Feature #4714: handle token expiration
This commit is contained in:
parent
f3d008a562
commit
1f9052a85f
@ -481,14 +481,9 @@ void UserLogin::request_execute(xmlrpc_c::paramList const& paramList,
|
||||
|
||||
return;
|
||||
}
|
||||
else if (max_token_time > 0)
|
||||
else if (max_token_time > 0 && ( valid > max_token_time || valid == -1))
|
||||
{
|
||||
valid = max(valid, max_token_time);
|
||||
|
||||
if (max_token_time < valid)
|
||||
{
|
||||
valid = max_token_time;
|
||||
}
|
||||
valid = max_token_time;
|
||||
}
|
||||
|
||||
if (valid == 0) //Reset token
|
||||
|
Loading…
x
Reference in New Issue
Block a user