From 5582f92df4ee2ad29055834ea33941b5edbc0a69 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 7 Jun 2023 16:47:52 +0000 Subject: [PATCH] fix interactive login add (#557) if you just hit "enter" the loginMethod is `` so this coves that case Reviewed-on: https://gitea.com/gitea/tea/pulls/557 Reviewed-by: Lunny Xiao Reviewed-by: techknowlogick Co-authored-by: 6543 <6543@obermui.de> Co-committed-by: 6543 <6543@obermui.de> --- modules/interact/login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/interact/login.go b/modules/interact/login.go index 4f159eb..584340e 100644 --- a/modules/interact/login.go +++ b/modules/interact/login.go @@ -49,7 +49,7 @@ func CreateLogin() error { } switch loginMethod { - case "token": + default: // token var hasToken bool promptYN := &survey.Confirm{ Message: "Do you have an access token?",