mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 13:29:21 +00:00
Clarify token name
This commit is contained in:
parent
8f9021d8ef
commit
d141902997
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user