- Timestamp:
- Feb 26, 2024, 6:25:48 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/WebServer/src/WebAPI/APIs/Permissions/WebApiTokens.cs
r434 r486 62 62 63 63 if (string.IsNullOrEmpty (id)) { 64 SendEmptyResponse (_context, HttpStatusCode.BadRequest, _jsonInputData, "NO_NAME");64 SendEmptyResponse (_context, HttpStatusCode.BadRequest, _jsonInputData, EApiErrorCode.NO_NAME); 65 65 return; 66 66 } 67 67 68 68 if (!JsonCommons.TryGetJsonField (_jsonInput, propertySecret, out string secret)) { 69 SendEmptyResponse (_context, HttpStatusCode.BadRequest, _jsonInputData, "NO_OR_INVALID_SECRET");69 SendEmptyResponse (_context, HttpStatusCode.BadRequest, _jsonInputData, EApiErrorCode.NO_OR_INVALID_SECRET); 70 70 return; 71 71 } 72 72 73 73 if (!JsonCommons.TryGetJsonField (_jsonInput, propertyPermissionLevel, out int permissionLevel)) { 74 SendEmptyResponse (_context, HttpStatusCode.BadRequest, _jsonInputData, "NO_OR_INVALID_PERMISSION_LEVEL");74 SendEmptyResponse (_context, HttpStatusCode.BadRequest, _jsonInputData, EApiErrorCode.NO_OR_INVALID_PERMISSION_LEVEL); 75 75 return; 76 76 }
Note:
See TracChangeset
for help on using the changeset viewer.