Compare commits

..
1 Commits
Author SHA1 Message Date
Danil Kislov b74b411e78 Мелкие исправления 2019-03-22 14:59:47 +03:00
6 changed files with 39 additions and 38 deletions
+1 -1
View File
@@ -1 +1 @@
1.0.31 1.0.32
@@ -17,10 +17,10 @@ namespace JiraTimeBot.Configuration
{ {
byte[] entropy = GetEntropy(address + username); byte[] entropy = GetEntropy(address + username);
byte[] pass = Encoding.UTF8.GetBytes(password); byte[] pass = Encoding.UTF8.GetBytes(password);
byte[] crypted = ProtectedData.Protect(pass, entropy, DataProtectionScope.LocalMachine); byte[] encrypted = ProtectedData.Protect(pass, entropy, DataProtectionScope.LocalMachine);
var cryptedBase64 = Convert.ToBase64String(crypted); var encryptedBase64 = Convert.ToBase64String(encrypted);
return cryptedBase64; return encryptedBase64;
} }
public string Decrypt(string username, string password, string address) public string Decrypt(string username, string password, string address)
@@ -32,7 +32,7 @@ namespace JiraTimeBot.Configuration
pass = ProtectedData.Unprotect(pass, entropy, DataProtectionScope.LocalMachine); pass = ProtectedData.Unprotect(pass, entropy, DataProtectionScope.LocalMachine);
return Encoding.UTF8.GetString(pass); return Encoding.UTF8.GetString(pass);
} }
catch (Exception ex) catch (Exception)
{ {
return ""; return "";
} }
+3 -3
View File
@@ -26,6 +26,6 @@ using System.Runtime.InteropServices;
// //
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.31")] [assembly: AssemblyVersion("1.0.32")]
[assembly: AssemblyFileVersion("1.0.31")] [assembly: AssemblyFileVersion("1.0.32")]
[assembly: AssemblyInformationalVersion("1.0.31")] [assembly: AssemblyInformationalVersion("1.0.32")]
@@ -51,7 +51,7 @@ namespace JiraTimeBot.TaskTime
Time = TimeSpan.FromMinutes(30), Time = TimeSpan.FromMinutes(30),
Branch = settings.TimeControlTask, Branch = settings.TimeControlTask,
Commits = 1, Commits = 1,
Description = "Время на учет задач", Description = "Ведение учета времени",
StartTime = DateTime.Now.Date StartTime = DateTime.Now.Date
}); });
} }
+1
View File
@@ -100,6 +100,7 @@ namespace JiraTimeBot.UI
if (System.Diagnostics.Debugger.IsAttached) if (System.Diagnostics.Debugger.IsAttached)
{ {
_log.Trace("Приложение запущено в режиме отладки. Отключаю обновление."); _log.Trace("Приложение запущено в режиме отладки. Отключаю обновление.");
//tmrUpdate.Enabled = true;
} }
else else
{ {
+1 -1
View File
@@ -69,7 +69,7 @@ namespace JiraTimeBot.Update
return reader.ReadToEnd(); return reader.ReadToEnd();
} }
} }
catch (Exception ex) catch (Exception)
{ {
return ""; return "";
} }