decided in favor of dedicated COMPONENT() macro, updates to documentation
This commit is contained in:
@@ -4,10 +4,11 @@ RENDER(Request& context)
|
||||
{
|
||||
starter_boot(context);
|
||||
context.var["starter"]["page_title"] = "Login";
|
||||
StarterUser users(context);
|
||||
DTree result;
|
||||
if(context.params["REQUEST_METHOD"] == "POST")
|
||||
{
|
||||
result = starter_user_sign_in(context.post["email"], context.post["password"], context);
|
||||
result = users.sign_in(context.post["email"], context.post["password"]);
|
||||
if(result["result"].to_string() != "")
|
||||
{
|
||||
starter_redirect("account/profile", context);
|
||||
|
||||
Reference in New Issue
Block a user