refactor: rename DTree to DValue
This commit is contained in:
@@ -4,7 +4,7 @@ COMPONENT(Request& context)
|
||||
{
|
||||
context.call["app"]["page_title"] = "Login";
|
||||
StarterUser users(context);
|
||||
DTree result;
|
||||
DValue result;
|
||||
if(context.params["REQUEST_METHOD"] == "POST")
|
||||
{
|
||||
result = users.sign_in(context.post["email"], context.post["password"]);
|
||||
|
||||
@@ -9,9 +9,9 @@ COMPONENT(Request& context)
|
||||
return;
|
||||
}
|
||||
context.call["app"]["page_title"] = "Profile";
|
||||
DTree user = users.current();
|
||||
DValue user = users.current();
|
||||
String roles = "";
|
||||
user["roles"].each([&](DTree role, String key) {
|
||||
user["roles"].each([&](DValue role, String key) {
|
||||
if(roles != "")
|
||||
roles += ", ";
|
||||
roles += role.to_string();
|
||||
|
||||
@@ -4,7 +4,7 @@ COMPONENT(Request& context)
|
||||
{
|
||||
context.call["app"]["page_title"] = "Register";
|
||||
StarterUser users(context);
|
||||
DTree result;
|
||||
DValue result;
|
||||
if(context.params["REQUEST_METHOD"] == "POST")
|
||||
result = users.create(context.post["email"], context.post["password"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user