mirror of
https://gitea.com/gitea/tea
synced 2024-11-22 16:02:01 +01:00
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:
parent
c72c6c0679
commit
5582f92df4
@ -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?",
|
||||
|
Loading…
Reference in New Issue
Block a user