first commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
{%- if not grav.user.authenticated -%}
|
||||
{"code":401,"status":"unauthenticated","error":{"message":"Authentication required","login":{{ include('partials/login-form.html.twig')|trim|json_encode }}}}
|
||||
{%- else -%}
|
||||
{"code":200,"status":"authenticated","message":"You have been authenticated"}
|
||||
{%- endif -%}
|
||||
Reference in New Issue
Block a user