Harden Gitea login fallback selection
This commit is contained in:
@@ -180,7 +180,7 @@ function Get-GiteaLoginForHost {
|
||||
}
|
||||
|
||||
if ($env:GITEA_LOGIN) {
|
||||
if ((Test-GiteaUrlMatchesHost -Url $env:GITEA_URL -GiteaHost $GiteaHost) -or (Test-TeaLoginMatchesHost -LoginName $env:GITEA_LOGIN -GiteaHost $GiteaHost)) {
|
||||
if (Test-TeaLoginMatchesHost -LoginName $env:GITEA_LOGIN -GiteaHost $GiteaHost) {
|
||||
return $env:GITEA_LOGIN
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user