family login
This commit is contained in:
@@ -1578,10 +1578,11 @@ long LoginWrenchBoardFamilyLogin(CVars in, CVars &out){
|
||||
/*LOAD THE SESSION INTO OUT now */
|
||||
load_db_record(out, "SELECT session FROM members_session WHERE member_id=%lu ORDER BY id DESC LIMIT 1", out["member_id"].Long());
|
||||
//===============================================================================================================================
|
||||
pgsql_query("UPDATE members SET last_login = now() , loc='%s' WHERE id = %lu",loc, out["member_id"].Long());
|
||||
pgsql_query("UPDATE members SET last_login = now() WHERE id = %lu", out["member_id"].Long());
|
||||
// pgsql_query("UPDATE members SET last_login = now() , loc='%s' WHERE id = %lu",loc, out["member_id"].Long());
|
||||
pgsql_exec("UPDATE members_family SET last_login = now() WHERE family_member_id=%lu",family_member_id );
|
||||
ret = PHP_LOGIN_OK;
|
||||
LoginLogger(out["member_id"].Long(),login_mode);
|
||||
LoginLogger(out["member_id"].Long(),LOGIN_MODE_FAMILY);
|
||||
} else {
|
||||
out["status"] = "Session check failed";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user