mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 20:17:03 +00:00
fix: check for grant code in mobileadduiclient
If the grant code was not provided, the `mobileadduiclient` console command would fail silently. The command now checks that the correct number of arguments was provided and prints an error to the console of one is missing
This commit is contained in:
parent
2c0739df4b
commit
5f4a1f768e
1 changed files with 8 additions and 0 deletions
|
|
@ -679,6 +679,14 @@ namespace PepperDash.Essentials.WebSocketServer
|
|||
}
|
||||
|
||||
var values = s.Split(' ');
|
||||
|
||||
if(values.Length < 2)
|
||||
{
|
||||
CrestronConsole.ConsoleCommandResponse("Invalid number of arguments. Please provide a room key and a grant code");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var roomKey = values[0];
|
||||
var grantCode = values[1];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue