From dbc7b2eaa64644d927527c435627fb8acca3d301 Mon Sep 17 00:00:00 2001 From: YaR Date: Wed, 3 Apr 2019 23:09:15 +0300 Subject: [PATCH] foo --- MailRuCloud/TwoFA/UI/MailRuCloudApi.TwoFA.File/AuthCodeFile.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {