fix(auth): make login not always error

This commit is contained in:
DJMrTV 2025-02-03 20:44:33 +01:00
commit 11cbeff4da

View file

@ -15,8 +15,6 @@ use crate::rmc::structures::connection_data::ConnectionData;
use crate::rmc::structures::qresult::QResult;
pub async fn login_ex(rmcmessage: &RMCMessage, proto_data: AuthProtocolConfig, pid: u32) -> RMCResponseResult{
return rmcmessage.error_result_with_code(ErrorCode::Authentication_OutOfService);
// todo: figure out how the AuthenticationInfo struct works, parse it and validate login info
let Ok(mut client) = account::Client::new().await else {