summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-03-12 18:16:22 +0000
committerDerrick Anderson <derrick@andersonwebstudio.com>2018-03-12 14:16:22 -0400
commit2b460da1d54944c5c16ef15e966843b00f06aa63 (patch)
tree5d4a3c1214f8e9182cfa80b60497ced17677f1be /cmd
parent22f2245a26a0414f2c4c79d3852a94504d474714 (diff)
downloadchat-2b460da1d54944c5c16ef15e966843b00f06aa63.tar.gz
chat-2b460da1d54944c5c16ef15e966843b00f06aa63.tar.bz2
chat-2b460da1d54944c5c16ef15e966843b00f06aa63.zip
Fix saml users.json parameter (#8435)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/platform/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/platform/user.go b/cmd/platform/user.go
index e2a8c9748..edbccb164 100644
--- a/cmd/platform/user.go
+++ b/cmd/platform/user.go
@@ -510,7 +510,7 @@ func migrateAuthToLdapCmdF(cmd *cobra.Command, args []string) error {
}
fromAuth := args[0]
- matchField := args[1]
+ matchField := args[2]
if len(fromAuth) == 0 || (fromAuth != "email" && fromAuth != "gitlab" && fromAuth != "saml") {
return errors.New("Invalid from_auth argument")
@@ -551,7 +551,7 @@ func migrateAuthToSamlCmdF(cmd *cobra.Command, args []string) error {
matchesFile := ""
matches := map[string]string{}
if !autoFlag {
- matchesFile = args[1]
+ matchesFile = args[2]
file, e := ioutil.ReadFile(matchesFile)
if e != nil {