mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-22 21:39: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)]
|
#[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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user