From 1fc9ac04336149041b2fb750a251547d855e90dd Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 14 Dec 2020 14:27:26 +0100 Subject: [PATCH] tfa: _entry api method name suffix consistency Signed-off-by: Wolfgang Bumiller --- src/api2/access/tfa.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api2/access/tfa.rs b/src/api2/access/tfa.rs index bae15ccc..e9a512ad 100644 --- a/src/api2/access/tfa.rs +++ b/src/api2/access/tfa.rs @@ -145,7 +145,7 @@ pub fn list_user_tfa(userid: Userid) -> Result, Error> { }, )] /// Get a single TFA entry. -pub fn get_tfa(userid: Userid, id: String) -> Result { +pub fn get_tfa_entry(userid: Userid, id: String) -> Result { let _lock = crate::config::tfa::read_lock()?; if let Some(user_data) = crate::config::tfa::read()?.users.remove(&userid) { @@ -570,6 +570,6 @@ const USER_ROUTER: Router = Router::new() .match_all("id", &ITEM_ROUTER); const ITEM_ROUTER: Router = Router::new() - .get(&API_METHOD_GET_TFA) + .get(&API_METHOD_GET_TFA_ENTRY) .put(&API_METHOD_UPDATE_TFA_ENTRY) .delete(&API_METHOD_DELETE_TFA);