Login: Undo disabling of Login Destination in User Settings when last destination not enabled.
This commit is contained in:
parent
baf579c03e
commit
ed2a209e23
12
logout.php
12
logout.php
|
|
@ -90,18 +90,6 @@ require_once "resources/require.php";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
//disable if not to remember last
|
|
||||||
$sql = "update v_user_settings set ";
|
|
||||||
$sql .= "user_setting_enabled = 'false' ";
|
|
||||||
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
|
||||||
$sql .= "and user_uuid = '".$_SESSION["user_uuid"]."' ";
|
|
||||||
$sql .= "and user_setting_category = 'login' ";
|
|
||||||
$sql .= "and user_setting_subcategory = 'destination' ";
|
|
||||||
$sql .= "and user_setting_name = 'url' ";
|
|
||||||
$db->exec(check_sql($sql));
|
|
||||||
unset($sql);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//redirect the user to the index page
|
//redirect the user to the index page
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue