diff options
| author | Manoj M J <mmj@gitlab.com> | 2021-01-29 14:45:47 +0530 |
|---|---|---|
| committer | Manoj M J <mmj@gitlab.com> | 2021-01-29 14:45:47 +0530 |
| commit | 9309666f5049424954e55f162c29b0c11b512133 (patch) | |
| tree | 1cb814b376777ae28ccf58b2af389e7f5cb15fb3 /internal/command | |
| parent | d3a7074655526cb5a227f4f7ed553799872cb83d (diff) | |
| download | gitlab-shell-9309666f5049424954e55f162c29b0c11b512133.tar.gz | |
Remove session duration information from output of 2fa_verify command504-remove-the-session-duration-information-from-the-output-of-2fa_verify-command
This change removes session duration
information from output of 2fa_verify command
Diffstat (limited to 'internal/command')
| -rw-r--r-- | internal/command/twofactorverify/twofactorverify.go | 2 | ||||
| -rw-r--r-- | internal/command/twofactorverify/twofactorverify_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/command/twofactorverify/twofactorverify.go b/internal/command/twofactorverify/twofactorverify.go index afd8e47..b1c5508 100644 --- a/internal/command/twofactorverify/twofactorverify.go +++ b/internal/command/twofactorverify/twofactorverify.go @@ -46,7 +46,7 @@ func (c *Command) verifyOTP(ctx context.Context, otp string) error { err = client.VerifyOTP(ctx, c.Args, otp) if err == nil { - fmt.Fprint(c.ReadWriter.Out, "\nOTP validation successful. Git operations are allowed for the next 15 minutes.\n") + fmt.Fprint(c.ReadWriter.Out, "\nOTP validation successful. Git operations are now allowed.\n") } else { fmt.Fprintf(c.ReadWriter.Out, "\nOTP validation failed.\n%v\n", err) } diff --git a/internal/command/twofactorverify/twofactorverify_test.go b/internal/command/twofactorverify/twofactorverify_test.go index 08eb380..9d5f54d 100644 --- a/internal/command/twofactorverify/twofactorverify_test.go +++ b/internal/command/twofactorverify/twofactorverify_test.go @@ -74,7 +74,7 @@ func TestExecute(t *testing.T) { arguments: &commandargs.Shell{GitlabKeyId: "1"}, answer: "123456\n", expectedOutput: question + - "OTP validation successful. Git operations are allowed for the next 15 minutes.\n", + "OTP validation successful. Git operations are now allowed.\n", }, { desc: "With bad response", |
