1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 21:39:21 +00:00

Clarify token name

This commit is contained in:
Pierre HUBERT 2021-05-11 17:45:26 +02:00
parent 8f9021d8ef
commit d141902997

View File

@ -8,13 +8,13 @@ use crate::data::admin::Admin;
#[derive(Serialize)] #[derive(Serialize)]
pub struct AdminAuthOptions { pub struct AdminAuthOptions {
access_token: bool, reset_token: bool,
} }
impl AdminAuthOptions { impl AdminAuthOptions {
pub fn new(admin: &Admin) -> Self { pub fn new(admin: &Admin) -> Self {
Self { Self {
access_token: admin.reset_token.is_some() reset_token: admin.reset_token.is_some()
} }
} }
} }