EXPERIMENTAL: Move 2FA to multi-confirmations, closes #295

Some further tests would be cool to do
This commit is contained in:
JustArchi
2016-07-15 16:13:36 +02:00
parent b2a4cf5e34
commit 2c2dccec2a
4 changed files with 31 additions and 35 deletions

View File

@@ -367,17 +367,17 @@ namespace ArchiSteamFarm.JSON {
Other
}
private uint _ConfirmationID;
internal uint ConfirmationID {
get { return _ConfirmationID; }
private MobileAuthenticator.Confirmation _Confirmation;
internal MobileAuthenticator.Confirmation Confirmation {
get { return _Confirmation; }
set {
if (value == 0) {
if (value == null) {
Logging.LogNullError(nameof(value));
return;
}
_ConfirmationID = value;
_Confirmation = value;
}
}