Skip to content

Commit

Permalink
update username on login
Browse files Browse the repository at this point in the history
  • Loading branch information
fspmarshall committed Jan 16, 2021
1 parent b8c0b96 commit de36e89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tool/tsh/tsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,10 @@ func onLogin(cf *CLIConf) {
utils.FatalError(err)
}

// the login operation may update the username and should be considered the more
// "authoritative" source.
cf.Username = tc.Username

// TODO(fspmarshall): Refactor access request & cert reissue logic to allow
// access requests to be applied to identity files.

Expand Down

0 comments on commit de36e89

Please sign in to comment.