diff --git a/pkg/interact/auth.go b/pkg/interact/auth.go index 32162ea14..71212df76 100644 --- a/pkg/interact/auth.go +++ b/pkg/interact/auth.go @@ -83,12 +83,14 @@ func (it *AuthInteract) Commands(interact *Interact) { return ErrAuthenticationFailed }) } else { - interact.Command("/auth", "authorize", func(reply Reply) error { + interact.Command("/auth", "authorize", func(reply Reply, session Session) error { switch it.Mode { case AuthModeToken: + session.SetAuthorizing(true) reply.Message("Enter your authentication token") case AuthModeOTP: + session.SetAuthorizing(true) reply.Message("Enter your one-time password") default: