fix-hardcoded-token-param #5

Merged
weirdcat merged 2 commits from fix-hardcoded-token-param into develop 2025-12-26 20:13:07 +03:00
Showing only changes of commit b54ce54e79 - Show all commits

View File

@@ -75,7 +75,7 @@ func (v *linkValidatorImpl) ValidateLink(rawURL string) (token string, ok bool)
}
}
token = parsedURL.Query().Get("token")
token = parsedURL.Query().Get(v.config.Communication.QrQueryToken)
if token == "" {
v.log.Debug("URL missing token parameter", "url", rawURL)
return "", false