Create login
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user