protondrive: don't auth with an empty access token

This commit is contained in:
Michał Dzienisiewicz 2024-05-24 12:39:52 +02:00 committed by Nick Craig-Wood
parent c13118246c
commit 4250dd98f3

View File

@ -285,6 +285,9 @@ func getConfigMap(m configmap.Mapper) (uid, accessToken, refreshToken, saltedKey
} }
_saltedKeyPass = saltedKeyPass _saltedKeyPass = saltedKeyPass
// empty strings are considered "ok" by m.Get, which is not true business-wise
ok = accessToken != "" && uid != "" && refreshToken != "" && saltedKeyPass != ""
return return
} }