diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-14 17:04:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 17:04:06 +0100 |
commit | 2df72942f2b057956c7873f908b64880ab647331 (patch) | |
tree | 7d2938f7185ed6843ddd1681429b9c4f9d1e7db6 /commands/bridge_auth_addtoken.go | |
parent | 10284903e9f56d32a45e42edeb51973756743074 (diff) | |
parent | 34083de0df5187caed3f788c1dcedf7196180206 (diff) | |
download | git-bug-2df72942f2b057956c7873f908b64880ab647331.tar.gz |
Merge pull request #321 from MichaelMure/cred-password
auth: refactor and introduce Login and LoginPassword, salt IDs
Diffstat (limited to 'commands/bridge_auth_addtoken.go')
-rw-r--r-- | commands/bridge_auth_addtoken.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/bridge_auth_addtoken.go b/commands/bridge_auth_addtoken.go index 9a937f4d..338b170e 100644 --- a/commands/bridge_auth_addtoken.go +++ b/commands/bridge_auth_addtoken.go @@ -86,7 +86,7 @@ func runBridgeTokenAdd(cmd *cobra.Command, args []string) error { } } - token := auth.NewToken(value, bridgeAuthAddTokenTarget) + token := auth.NewToken(bridgeAuthAddTokenTarget, value) token.SetMetadata(auth.MetaKeyLogin, bridgeAuthAddTokenLogin) if err := token.Validate(); err != nil { |