Fix comment

The Windows Credential Manager actually fails if the password is more than 1024 bits long.

CURA-7180
This commit is contained in:
Kostas Karmas 2021-03-29 17:03:09 +02:00
parent dbb15b7c71
commit fb5d59db32

View file

@ -41,7 +41,7 @@ class KeyringAttribute:
setattr(instance, self._name, value)
Logger.logException("w", "No keyring backend present")
except BaseException as e:
# A BaseException can occur in Windows when the keyring attempts to write a token longer than 256
# A BaseException can occur in Windows when the keyring attempts to write a token longer than 1024
# characters in the Windows Credentials Manager.
self._store_secure = False
setattr(instance, self._name, value)