From 38dfa32bfa458f6e0a563396c65c10d734bea1d7 Mon Sep 17 00:00:00 2001 From: TonyQ Wang Date: Sat, 16 Apr 2022 21:25:46 +0800 Subject: [PATCH] Update auth.go refine message --- pkg/interact/auth.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/interact/auth.go b/pkg/interact/auth.go index db382a2b5..84ae4874d 100644 --- a/pkg/interact/auth.go +++ b/pkg/interact/auth.go @@ -84,7 +84,13 @@ func (it *AuthInteract) Commands(interact *Interact) { }) } else { interact.Command("/auth", "authorize", func(reply Reply) error { - reply.Message("Enter your authentication code") + switch it.Mode { + case AuthModeToken: + reply.Message("Enter your authentication token") + + case AuthModeOTP: + reply.Message("Enter your one-time password") + } return nil }).NamedNext(StateAuthenticated, func(code string, reply Reply, session Session) error { switch it.Mode {