From e302b1bb78809fde295c92a5f401ccb54949e24a Mon Sep 17 00:00:00 2001 From: rpm-mcarman <65228808+rpm-mcarman@users.noreply.github.com> Date: Mon, 18 Mar 2024 15:38:53 -0400 Subject: [PATCH] Changed base query --- app/api/security/defalutadminapi.json | 33 +++++++++++---------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/app/api/security/defalutadminapi.json b/app/api/security/defalutadminapi.json index b90f6d3..ccfdb35 100644 --- a/app/api/security/defalutadminapi.json +++ b/app/api/security/defalutadminapi.json @@ -47,15 +47,7 @@ "column": "lastname" } ], - "params": [ - { - "operator": "equal", - "type": "expression", - "name": ":P1", - "value": "{{$_GET.id}}", - "test": "" - } - ], + "params": [], "table": { "name": "users" }, @@ -65,21 +57,22 @@ "condition": "AND", "rules": [ { - "id": "users.id", - "field": "users.id", - "type": "double", + "id": "users.email", + "field": "users.email", + "type": "string", "operator": "equal", - "value": "{{$_GET.id}}", + "value": "admin@prelub.com", "data": { "table": "users", - "column": "id", - "type": "number", + "column": "email", + "type": "text", "columnObj": { - "type": "increments", - "primary": true, + "type": "string", + "maxLength": 255, + "primary": false, "unique": false, - "nullable": false, - "name": "id" + "nullable": true, + "name": "email" } }, "operation": "=" @@ -88,7 +81,7 @@ "conditional": null, "valid": true }, - "query": "select `id`, `email`, `pwd`, `firstname`, `lastname` from `users` where `users`.`id` = ?" + "query": "select `id`, `email`, `pwd`, `firstname`, `lastname` from `users` where `users`.`email` = ?" } }, "output": true,