mirror of
https://git.42l.fr/neil/sncf.git
synced 2024-05-04 15:03:12 +02:00
add admin token in server-side templates
This commit is contained in:
parent
112ea773a2
commit
0d38e2f2d4
|
@ -8,6 +8,7 @@ use crate::config::Config;
|
||||||
pub struct TplIndex<'a> {
|
pub struct TplIndex<'a> {
|
||||||
pub lang: &'a str,
|
pub lang: &'a str,
|
||||||
pub csrf_token: &'a str,
|
pub csrf_token: &'a str,
|
||||||
|
pub sncf_admin_token: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
|
|
Loading…
Reference in a new issue