diff --git a/wrenchboard/src/shared_tool/account_mngt.cc b/wrenchboard/src/shared_tool/account_mngt.cc index 5302610d..9d4be2b6 100644 --- a/wrenchboard/src/shared_tool/account_mngt.cc +++ b/wrenchboard/src/shared_tool/account_mngt.cc @@ -535,9 +535,15 @@ long CreateMobileWrenchBoardAccount(CVars in, CVars &out) { long CompleteMobileAccountCreation(CVars in, CVars &out){ long ret = PHP_API_BAD_PARAM; + CVars x; + x["password"] = in["password"]; x["password"].set_valid( true ); + x["sessionid"] = "IINITIAL_SESSION_DUMMY"; x["sessionid"].set_valid( true ); + x["username"] = in["username"]; x["username"].set_valid( true ); + x["login_mode"]= "100"; x["login_mode"].set_valid( true ); + if ( CreateWrenchBoardAccount(in, out) > 0 ) { - ret = LoginWrenchBoardAccount(in, out); + ret = LoginWrenchBoardAccount(x, out); } return ret; }