diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-27 15:36:49 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-27 15:36:49 +0300 |
| commit | 89b98cde43f3f1959f7229c8823b31295e147d4b (patch) | |
| tree | c2febbf4485dee5d58c32bd21f1d66bcd784c3e4 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Publisher/MainWindowVM.cs | |
| parent | 0a7cebf17c66bb54e826d2b904d89c73e1c9a33b (diff) | |
| download | Tango-89b98cde43f3f1959f7229c8823b31295e147d4b.tar.gz Tango-89b98cde43f3f1959f7229c8823b31295e147d4b.zip | |
Machine Studio v1.0.0.6
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Publisher/MainWindowVM.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Publisher/MainWindowVM.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Publisher/MainWindowVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Publisher/MainWindowVM.cs index 11222e806..a45353555 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Publisher/MainWindowVM.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Publisher/MainWindowVM.cs @@ -22,6 +22,7 @@ namespace Tango.MachineStudio.Publisher { public class MainWindowVM : ViewModel { + private BasicHashGenerator _hashGenerator; private String _appPath = AppDomain.CurrentDomain.BaseDirectory + "..\\Release"; private ChannelFactory<IMachineStudioUpdateService> _service; private IMachineStudioUpdateService _client; @@ -104,6 +105,8 @@ namespace Tango.MachineStudio.Publisher { MaxProgress = 100; + _hashGenerator = new BasicHashGenerator(); + PublishCommand = new RelayCommand(Publish, () => Email != null && Password != null && Comments != null && CurrentVersion != null && LatestVersion != null && !IsUpdating && Version.Parse(CurrentVersion) > Version.Parse(LatestVersion)); _service = UpdateServiceHelper.GetUpdateServiceChannel(); @@ -140,7 +143,7 @@ namespace Tango.MachineStudio.Publisher var response = _client.UploadVersion(new UploadVersionRequest() { Email = Email, - Password = Password, + Password = _hashGenerator.Encrypt(Password), Version = CurrentVersion.ToString(), Comments = Comments, ForcedUpdate = ForcedUpdate, |
