diff --git a/MailRuCloud/TwoFA/UI/MailRuCloudApi.TwoFA.File/AuthCodeFile.cs b/MailRuCloud/TwoFA/UI/MailRuCloudApi.TwoFA.File/AuthCodeFile.cs index c8a924e5..f666391d 100644 --- a/MailRuCloud/TwoFA/UI/MailRuCloudApi.TwoFA.File/AuthCodeFile.cs +++ b/MailRuCloud/TwoFA/UI/MailRuCloudApi.TwoFA.File/AuthCodeFile.cs @@ -55,7 +55,8 @@ public string Get(string login, bool isAutoRelogin) _code = File.ReadAllText(filepath); try { - File.Delete(filepath); + if (_doDeleteFileAfter) + File.Delete(filepath); } catch (Exception) {