summaryrefslogtreecommitdiff
path: root/internal/command/command.go
diff options
context:
space:
mode:
authorIgor Drozdov <idrozdov@gitlab.com>2020-12-10 14:40:31 +0000
committerIgor Drozdov <idrozdov@gitlab.com>2020-12-10 14:40:31 +0000
commit2fb14fb46bf4cffe8aff4a31794ae9d3588aac78 (patch)
treec4d4057fcdc5753086493c71b10f9ea5ee7b84d5 /internal/command/command.go
parent384f3036e3d9c501e29a7ce24ece1e887a14d53a (diff)
parent1293a33014c9cfc82b0bc1b9525987476b2aa857 (diff)
downloadgitlab-shell-2fb14fb46bf4cffe8aff4a31794ae9d3588aac78.tar.gz
Merge branch 'if-270554-2fa_verify_command' into 'main'
Add 2fa_verify command See merge request gitlab-org/gitlab-shell!440
Diffstat (limited to 'internal/command/command.go')
-rw-r--r--internal/command/command.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/command/command.go b/internal/command/command.go
index a2c5912..5062d15 100644
--- a/internal/command/command.go
+++ b/internal/command/command.go
@@ -15,6 +15,7 @@ import (
"gitlab.com/gitlab-org/gitlab-shell/internal/command/receivepack"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/shared/disallowedcommand"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/twofactorrecover"
+ "gitlab.com/gitlab-org/gitlab-shell/internal/command/twofactorverify"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/uploadarchive"
"gitlab.com/gitlab-org/gitlab-shell/internal/command/uploadpack"
"gitlab.com/gitlab-org/gitlab-shell/internal/config"
@@ -87,6 +88,8 @@ func buildShellCommand(args *commandargs.Shell, config *config.Config, readWrite
return &discover.Command{Config: config, Args: args, ReadWriter: readWriter}
case commandargs.TwoFactorRecover:
return &twofactorrecover.Command{Config: config, Args: args, ReadWriter: readWriter}
+ case commandargs.TwoFactorVerify:
+ return &twofactorverify.Command{Config: config, Args: args, ReadWriter: readWriter}
case commandargs.LfsAuthenticate:
return &lfsauthenticate.Command{Config: config, Args: args, ReadWriter: readWriter}
case commandargs.ReceivePack: