From d1419029976c9b942671fc93464f5a2f48d9b962 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 11 May 2021 17:45:26 +0200 Subject: [PATCH] Clarify token name --- src/api_data/admin/admin_auth_options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api_data/admin/admin_auth_options.rs b/src/api_data/admin/admin_auth_options.rs index 6b00692..5ab52aa 100644 --- a/src/api_data/admin/admin_auth_options.rs +++ b/src/api_data/admin/admin_auth_options.rs @@ -8,13 +8,13 @@ use crate::data::admin::Admin; #[derive(Serialize)] pub struct AdminAuthOptions { - access_token: bool, + reset_token: bool, } impl AdminAuthOptions { pub fn new(admin: &Admin) -> Self { Self { - access_token: admin.reset_token.is_some() + reset_token: admin.reset_token.is_some() } } } \ No newline at end of file