summaryrefslogtreecommitdiff
path: root/templates/account.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-21 08:36:25 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-21 08:36:25 +0100
commit3e2491a9bc6579ccf017f0dbc2573b5ab4c75613 (patch)
treefe2e0af05dacc9b51aad3ceee7121471012d8cc4 /templates/account.html.ep
parent72c50a7cc8fea6942a000d3f8f40bb31ee968ba3 (diff)
API documentation: do not perform database requests from template helpers
Diffstat (limited to 'templates/account.html.ep')
-rw-r--r--templates/account.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/account.html.ep b/templates/account.html.ep
index 418291c..9c5d88e 100644
--- a/templates/account.html.ep
+++ b/templates/account.html.ep
@@ -177,7 +177,7 @@
</div>
</div>
-% my $token = get_api_token();
+% my $token = stash('api_token') // {};
<div class="row">
<div class="col s12">
<h2>API</h2>