refactor: rename DTree to DValue
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
|
||||
COMPONENT(Request& context)
|
||||
{
|
||||
DTree asset_props;
|
||||
DValue asset_props;
|
||||
asset_props["css"]["0"] = "views/marketing.css";
|
||||
print(component("../../components/theme/assets", asset_props, context));
|
||||
context.call["app"]["page_title"] = "Auth";
|
||||
|
||||
DTree props;
|
||||
DValue props;
|
||||
props["title"] = "Sign In to Your Account";
|
||||
props["subtitle"] = "Choose your preferred authentication method to continue";
|
||||
props["google_client_id"] = "YOUR_GOOGLE_CLIENT_ID";
|
||||
|
||||
@@ -4,8 +4,8 @@ COMPONENT(Request& context)
|
||||
{
|
||||
context.call["app"]["page_type"] = "json";
|
||||
|
||||
DTree response;
|
||||
DTree body = json_decode(context.in);
|
||||
DValue response;
|
||||
DValue body = json_decode(context.in);
|
||||
if(context.params["REQUEST_METHOD"] == "POST" && body["oauth_service"].to_string() != "" && body["oauth_state"].to_string() != "")
|
||||
{
|
||||
context.session["oauth_service"] = body["oauth_service"].to_string();
|
||||
|
||||
Reference in New Issue
Block a user