diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-12 18:32:01 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-12 23:37:57 +0100 |
commit | 34083de0df5187caed3f788c1dcedf7196180206 (patch) | |
tree | 62f550b068f7dea989cfd232385181b5f6eba105 /commands | |
parent | 9f3618d886d461ea806468a8c690a4a303d66d9b (diff) | |
download | git-bug-34083de0df5187caed3f788c1dcedf7196180206.tar.gz |
auth: refactor and introduce Login and LoginPassword, salt IDs
Diffstat (limited to 'commands')
-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 { |