hotfix(configuration/settings): fix requirement for proton username and password
This commit is contained in:
@@ -58,7 +58,7 @@ func (u Updater) Validate() (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if provider == providers.Protonvpn {
|
if provider == providers.Protonvpn {
|
||||||
authenticatedAPI := *u.ProtonUsername == "" || *u.ProtonPassword == ""
|
authenticatedAPI := *u.ProtonUsername != "" || *u.ProtonPassword != ""
|
||||||
if authenticatedAPI {
|
if authenticatedAPI {
|
||||||
switch {
|
switch {
|
||||||
case *u.ProtonUsername == "":
|
case *u.ProtonUsername == "":
|
||||||
|
|||||||
Reference in New Issue
Block a user