aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-18 17:59:41 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-18 17:59:41 +0200
commitf131b2573bfb617998927ea1072eb946b800d5e7 (patch)
tree949b9cc7b7248abd958d7b5300dd2082495acbd7 /Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
parent45ac8eaf0e03d87c2f9728b2b7c84922c6f6a37d (diff)
downloadTango-f131b2573bfb617998927ea1072eb946b800d5e7.tar.gz
Tango-f131b2573bfb617998927ea1072eb946b800d5e7.zip
PPC working on tablet !
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
index 6126594c5..d675a348f 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/SynchronizationController.cs
@@ -98,9 +98,9 @@ namespace Tango.MachineService.Controllers
throw new AuthenticationException("The specified serial number could not be found.");
}
- if (machine.OsKey == null)
+ if (machine.SetupActivation && machine.OsKey == null)
{
- throw new InvalidDataException("The specified machine is not associated with an OS activation key.");
+ throw new InvalidDataException("The specified machine is configured to perform an OS activation but is not associated with an OS activation key.");
}
var machine_version = db.MachineVersions.SingleOrDefault(x => x.Guid == machine.MachineVersionGuid);
@@ -134,6 +134,12 @@ namespace Tango.MachineService.Controllers
response.DbUserName = credentials.UserName;
response.DbPassword = credentials.Password;
response.OSKey = machine.OsKey;
+ response.SetupActivation = machine.SetupActivation;
+ response.SetupRemoteAssistance = machine.SetupRemoteAssistance;
+ response.SetupUWF = machine.SetupUwf;
+ response.SetupFirmware = machine.SetupFirmware;
+ response.IsDemo = machine.IsDemo;
+
}
return response;