aboutsummaryrefslogtreecommitdiffstats
path: root/commands/bridge_auth_addtoken.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-12 18:32:01 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-12 23:37:57 +0100
commit34083de0df5187caed3f788c1dcedf7196180206 (patch)
tree62f550b068f7dea989cfd232385181b5f6eba105 /commands/bridge_auth_addtoken.go
parent9f3618d886d461ea806468a8c690a4a303d66d9b (diff)
downloadgit-bug-34083de0df5187caed3f788c1dcedf7196180206.tar.gz
auth: refactor and introduce Login and LoginPassword, salt IDs
Diffstat (limited to 'commands/bridge_auth_addtoken.go')
-rw-r--r--commands/bridge_auth_addtoken.go2
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 {