mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-10-30 23:24:42 +00:00 
			
		
		
		
	Clarify token name
This commit is contained in:
		| @@ -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() | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
		Reference in New Issue
	
	Block a user