From 73c24a5d200c4b11851a62a750a6dadd8ddc5f83 Mon Sep 17 00:00:00 2001 From: jake Date: Sun, 1 Nov 2020 18:05:09 -0700 Subject: [PATCH] cleanup --- src/login/login.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/login/login.rs b/src/login/login.rs index 18bfa1a..ca11820 100644 --- a/src/login/login.rs +++ b/src/login/login.rs @@ -63,11 +63,7 @@ pub async fn get_login_status(entity_gateway: &impl EntityGateway, pkt: &Login) let username = array_to_utf8(pkt.username).map_err(|_err| AccountStatus::Error)?; let password = array_to_utf8(pkt.password).map_err(|_err| AccountStatus::Error)?; let user = entity_gateway.get_user_by_name(username).await.map_err(|_| AccountStatus::InvalidUser)?; - /*if user.is_currently_online() { - return Err(AccountStatus::AlreadyOnline) - }*/ - log::info!("user: {}, activated {}", user.username, user.activated); if !user.activated { return Err(AccountStatus::PayUp) } @@ -233,7 +229,7 @@ mod test { }) } - async fn save_user(&mut self, user: &UserAccountEntity) -> Result<(), GatewayError> { + async fn save_user(&mut self, _user: &UserAccountEntity) -> Result<(), GatewayError> { Ok(()) } };