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 <xiaolunwen@gmail.com>
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-committed-by: 6543 <6543@obermui.de>
This commit is contained in:
6543 2023-06-07 16:47:52 +00:00 committed by techknowlogick
parent c72c6c0679
commit 5582f92df4

View File

@ -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?",