From d188fe49b52b0b39fc9f3f72c4e8a3a930ba0c90 Mon Sep 17 00:00:00 2001 From: xystrive Date: Thu, 25 Jul 2024 13:23:16 +0100 Subject: [PATCH] refactor: comments --- src/instance.rs | 5 +++-- src/types/entities/mfa_token.rs | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/instance.rs b/src/instance.rs index 67d7bd2..0faacb3 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -236,13 +236,14 @@ impl ChorusUser { } /// Sends a request to complete an MFA challenge. - /// # Reference - /// See /// /// If successful, the MFA verification JWT returned is set on the current [ChorusUser] executing the /// request. /// /// The JWT token expires after 5 minutes. + /// + /// # Reference + /// See pub async fn complete_mfa_challenge(&mut self, mfa_verify_schema: MfaVerifySchema) -> ChorusResult<()> { let endpoint_url = self.belongs_to.read().unwrap().urls.api.clone() + "/mfa/finish"; let chorus_request = ChorusRequest { diff --git a/src/types/entities/mfa_token.rs b/src/types/entities/mfa_token.rs index 1c2a3e8..3bd5c13 100644 --- a/src/types/entities/mfa_token.rs +++ b/src/types/entities/mfa_token.rs @@ -1,3 +1,7 @@ +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + use chrono::{DateTime, Utc}; #[derive(Debug, Clone)]