Nullable ctor: Empty classes are now converted into/from a null value. This simplifies the hierarchy

This commit is contained in:
Wizou 2021-09-30 03:40:08 +02:00
parent 52fb2a7831
commit d4c373d95f
9 changed files with 263 additions and 283 deletions

View file

@ -360,7 +360,7 @@ j4WcDuXc2CTHgH8gFTNhp/Y8/SpDOhvn9QIDAQAB
return output;
}
internal static InputCheckPasswordSRPBase Check2FA(Account_Password accountPassword, string password)
internal static InputCheckPasswordSRP Check2FA(Account_Password accountPassword, string password)
{
if (accountPassword.current_algo is not PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow algo)
throw new ApplicationException("2FA authentication uses an unsupported algo: " + accountPassword.current_algo?.GetType().Name);