mirror of
https://gitea.com/gitea/tea.git
synced 2024-12-04 14:46:40 -05: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 {
|
switch loginMethod {
|
||||||
case "token":
|
default: // token
|
||||||
var hasToken bool
|
var hasToken bool
|
||||||
promptYN := &survey.Confirm{
|
promptYN := &survey.Confirm{
|
||||||
Message: "Do you have an access token?",
|
Message: "Do you have an access token?",
|
||||||
|
Loading…
Reference in New Issue
Block a user