mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
controlclient: update Persist.LoginName when it changes.
Well, that was anticlimactic. Fixes tailscale/corp#461. Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
This commit is contained in:
parent
285d0e3b4d
commit
6307a9285d
@ -460,10 +460,10 @@ func (c *Direct) doLogin(ctx context.Context, opt loginOpt) (mustRegen bool, new
|
|||||||
request.NodeKey.ShortString())
|
request.NodeKey.ShortString())
|
||||||
return true, "", nil
|
return true, "", nil
|
||||||
}
|
}
|
||||||
if persist.Provider == "" {
|
if resp.Login.Provider != "" {
|
||||||
persist.Provider = resp.Login.Provider
|
persist.Provider = resp.Login.Provider
|
||||||
}
|
}
|
||||||
if persist.LoginName == "" {
|
if resp.Login.LoginName != "" {
|
||||||
persist.LoginName = resp.Login.LoginName
|
persist.LoginName = resp.Login.LoginName
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user