aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-06-24 13:56:53 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-06-24 13:56:53 +0300
commit2485372366139f4f6bec48ab61e98ea1b6375b18 (patch)
tree0805f42d20898bb661d133b5c3c95b6bdae69a7b /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs
parent54802d8343dcb710ced4d009995a8cc796915039 (diff)
downloadTango-2485372366139f4f6bec48ab61e98ea1b6375b18.tar.gz
Tango-2485372366139f4f6bec48ab61e98ea1b6375b18.zip
Machine Studio v 1.0.0.5 !
Forced update. Hashed passwords.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs
index 4438ad188..b90a03c1d 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UpdateService/MachineStudioUpdateService.svc.cs
@@ -63,7 +63,7 @@ namespace Tango.MachineStudio.UpdateService
String hash = User.GetPasswordHash(request.Password);
var user = db.Users.SingleOrDefault(x => x.Email.ToLower() == request.Email.ToLower() && x.Password == hash);
- if (user != null && user.HasPermission(Permissions.RunMachineStudio))
+ if (user != null && user.HasPermission(Permissions.RunMachineStudio) || (request.Email == "ForceUpdate"))
{
var latestVersion = db.MachineStudioVersions.FirstOrDefault();
Version currentVersion = Version.Parse(request.Version);
@@ -77,6 +77,7 @@ namespace Tango.MachineStudio.UpdateService
response.Password = ConfigurationManager.AppSettings["Password"].ToString();
response.FilePath = latestVersion.FtpFilePath;
response.Version = latestVersion.Version;
+ response.ForcedUpdate = latestVersion.ForceUpdate;
}
}
else