Login requires a http/https login URL and revmoe SSH as a login method. SSH will be optional (#826)

Fix #825

Reviewed-on: https://gitea.com/gitea/tea/pulls/826
This commit is contained in:
Lunny Xiao committed 2025-10-18 23:09:27 +00:00
1 parent 61d4e571a7
commit 90f8624ae7
4 files changed
+41 -59

No files matched your search

+1 -1
View File
@@ -120,7 +120,7 @@ func InitCommand(cmd *cli.Command) *TeaContext {
// override config user with env variable
envLogin := GetLoginByEnvVar()
if envLogin != nil {
_, err := utils.ValidateAuthenticationMethod(envLogin.URL, envLogin.Token, "", "", false, "", "")
_, err := utils.ValidateAuthenticationMethod(envLogin.URL, envLogin.Token, "", "")
if err != nil {
log.Fatal(err.Error())
}