protondrive: don't auth with an empty access token
This commit is contained in:
parent
c13118246c
commit
4250dd98f3
1 changed files with 3 additions and 0 deletions
|
@ -285,6 +285,9 @@ func getConfigMap(m configmap.Mapper) (uid, accessToken, refreshToken, saltedKey
|
|||
}
|
||||
_saltedKeyPass = saltedKeyPass
|
||||
|
||||
// empty strings are considered "ok" by m.Get, which is not true business-wise
|
||||
ok = accessToken != "" && uid != "" && refreshToken != "" && saltedKeyPass != ""
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue