From f5864afb5279a3737c3a90d0760c8375a0a8d995 Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 15 May 2024 03:06:06 -0400 Subject: [PATCH] remove namespace check on username login, code simplification on login route the namespace check on username login is unnecessary, hashes aren't ever going to match, and axum auth handles this kind of stuff already Signed-off-by: strawberry --- src/api/client_server/session.rs | 39 +++++++++----------------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/src/api/client_server/session.rs b/src/api/client_server/session.rs index 554af631..28df625f 100644 --- a/src/api/client_server/session.rs +++ b/src/api/client_server/session.rs @@ -18,7 +18,7 @@ use ruma::{ UserId, }; use serde::Deserialize; -use tracing::{debug, error, info, warn}; +use tracing::{debug, info, warn}; use super::{DEVICE_ID_LENGTH, TOKEN_LENGTH}; use crate::{services, utils, Error, Result, Ruma}; @@ -76,14 +76,7 @@ pub(crate) async fn login_route(body: Ruma) -> Result) -> Result) -> Result