{ "meta": { "options": { "linkedFile": "/views/cnfrm.ejs", "linkedForm": "frm_cnfrm" }, "$_POST": [ { "type": "text", "fieldName": "id", "name": "id" }, { "type": "text", "fieldName": "confirmation", "name": "confirmation" }, { "type": "text", "fieldName": "firstname", "name": "firstname" }, { "type": "text", "fieldName": "lastname1", "name": "lastname1" }, { "type": "text", "fieldName": "email", "name": "email" }, { "type": "text", "fieldName": "password", "name": "password" } ] }, "exec": { "steps": [ { "name": "identity", "module": "auth", "action": "identify", "options": { "provider": "auth" }, "output": true, "meta": [] }, { "name": "hash", "module": "crypto", "action": "passwordHash", "options": { "password": "{{$_POST.password}}" }, "outputType": "text", "metaData": { "hashPassword": { "name": "password", "type": "text" } } }, { "name": "update", "module": "dbupdater", "action": "update", "options": { "connection": "authdb", "sql": { "type": "update", "values": [ { "table": "users", "column": "email", "type": "text", "value": "{{$_POST.email}}" }, { "table": "users", "column": "pwd", "type": "text", "value": "{{hash}}" }, { "table": "users", "column": "regdate", "type": "datetime", "value": "{{NOW}}" }, { "table": "users", "column": "regcode", "type": "text", "value": "" }, { "table": "users", "column": "validated", "type": "boolean", "value": "1" }, { "table": "users", "column": "firstname", "type": "text", "value": "{{$_POST.firstname}}" }, { "table": "users", "column": "lastname", "type": "text", "value": "{{$_POST.lastname1}}" } ], "table": "users", "wheres": { "condition": "AND", "rules": [ { "id": "id", "type": "double", "operator": "equal", "value": "{{$_POST.id}}", "data": { "column": "id" }, "operation": "=" } ] }, "returning": "id", "query": "update `users` set `email` = ?, `pwd` = ?, `regdate` = ?, `regcode` = ?, `validated` = ?, `firstname` = ?, `lastname` = ? where `id` = ? returning `id`", "params": [ { "name": ":P1", "type": "expression", "value": "{{$_POST.email}}", "test": "" }, { "name": ":P2", "type": "expression", "value": "{{hash}}", "test": "" }, { "name": ":P3", "type": "expression", "value": "{{NOW}}", "test": "" }, { "name": ":P4", "type": "expression", "value": "{{$_POST.firstname}}", "test": "" }, { "name": ":P5", "type": "expression", "value": "{{$_POST.lastname1}}", "test": "" }, { "operator": "equal", "type": "expression", "name": ":P6", "value": "{{$_POST.id}}", "test": "" } ] } }, "meta": [ { "name": "affected", "type": "number" } ] }, { "name": "api", "module": "api", "action": "send", "options": { "url": "{{$_ENV.API_BASEURL+'users/insert'}}", "dataType": "json", "schema": [ { "type": "object", "name": "data", "sub": [ { "type": "boolean", "name": "isactive" }, { "type": "array", "name": "roles", "sub": [ { "type": "text", "name": "description" }, { "type": "text", "name": "updateuserid" }, { "type": "text", "name": "updatedate" }, { "type": "text", "name": "createdate" }, { "type": "text", "name": "createuserid" }, { "type": "number", "name": "id" }, { "type": "text", "name": "name" } ] }, { "type": "number", "name": "id" }, { "type": "text", "name": "firstname" }, { "type": "text", "name": "email" }, { "type": "text", "name": "lastname" }, { "type": "text", "name": "username" }, { "type": "text", "name": "password" } ] }, { "type": "object", "name": "headers", "sub": [ { "type": "text", "name": "connection" }, { "type": "text", "name": "content-length" }, { "type": "text", "name": "content-type" }, { "type": "text", "name": "date" } ] } ], "method": "POST", "data": { "isactive": true, "id": "{{$_POST.id}}", "firstname": "{{$_POST.firstname}}", "email": "{{$_POST.email}}", "lastname": "{{$_POST.lastname1}}", "username": "", "password": "{{hash}}", "updateuserid": "{{identity}}", "createuserid": "{{identity}}" } }, "output": true, "metaData": {}, "meta": [ { "type": "object", "name": "data", "sub": [ { "type": "boolean", "name": "isactive" }, { "type": "array", "name": "roles", "sub": [ { "type": "text", "name": "description" }, { "type": "text", "name": "updateuserid" }, { "type": "text", "name": "updatedate" }, { "type": "text", "name": "createdate" }, { "type": "text", "name": "createuserid" }, { "type": "number", "name": "id" }, { "type": "text", "name": "name" } ] }, { "type": "number", "name": "id" }, { "type": "text", "name": "firstname" }, { "type": "text", "name": "email" }, { "type": "text", "name": "lastname" }, { "type": "text", "name": "username" }, { "type": "text", "name": "password" } ] }, { "type": "object", "name": "headers", "sub": [ { "type": "text", "name": "connection" }, { "type": "text", "name": "content-length" }, { "type": "text", "name": "content-type" }, { "type": "text", "name": "date" } ] } ], "outputType": "object" } ] }, "usedModules": { "argon2": "^0.30.2" } }