syntx err

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-27 10:13:10 -04:00
parent 09aabdd980
commit 8b978b35a8
+2 -1
View File
@@ -550,6 +550,7 @@ long CreateWrenchBoardAccount(CVars in, CVars &out) {
REQ_STRING (in, "password", 3, 15, "(.*)");
REQ_STRING(in, "username", 5, 49, "(.*)");
OPTIONAL(in, "loc") REQ_STRING(in, "loc", 3, 15, "(.*)");
CVars x;
//const char * loc = getenv('REMOTE_ADDR');
//in["loc"] = loc;
try {
@@ -557,7 +558,7 @@ long CreateWrenchBoardAccount(CVars in, CVars &out) {
if (lonkF) {
if (out["pending_id"].Long() > 0 ){
out["status"] = "prepare to create account";
CVars x;
x["username"] = out["username"];
x["username"].set_valid(true);
x["firstname"] = out["firstname"];