From 0d38e2f2d4be40674607c2f14cf13a1c3f0b7923 Mon Sep 17 00:00:00 2001 From: neil Date: Tue, 13 Apr 2021 00:02:09 +0200 Subject: [PATCH] add admin token in server-side templates --- src/templates.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/templates.rs b/src/templates.rs index 34bf1e5..8265274 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -8,6 +8,7 @@ use crate::config::Config; pub struct TplIndex<'a> { pub lang: &'a str, pub csrf_token: &'a str, + pub sncf_admin_token: Option, } #[derive(Template)]