mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
M #-: Fix GOCA bug (#3776)
This commit is contained in:
1 parent
5951d4232d
commit
ab0dc8cfd1
1 file changed
+6
-1
@@ -131,7 +131,12 @@ func (uc *UserController) Passwd(password string) error {
|
||||
// * timeSeconds: Valid period in seconds; 0 reset the token and -1 for a non-expiring token.
|
||||
// * effectiveGID: Effective GID to use with this token. To use the current GID and user groups set it to -1
|
||||
func (uc *UserController) Login(token string, timeSeconds int, effectiveGID int) error {
|
||||
_, err := uc.c.Client.Call("one.user.login", uc.Name, token, timeSeconds, effectiveGID)
|
||||
user, err := uc.Info()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
_, err = uc.c.Client.Call("one.user.login", user.Name, token, timeSeconds, effectiveGID)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user