fix type errors in auth_handler.rs

This commit is contained in:
Maple 2026-03-24 15:20:38 +01:00
commit b6b7d2559d

View file

@ -146,16 +146,16 @@ impl AuthHandler {
&self, &self,
name: &str, name: &str,
) -> Result<(PID, String, Box<[u8]>), ErrorCode> { ) -> Result<(PID, String, Box<[u8]>), ErrorCode> {
#[cfg(feature = "guest_login")]
{ {
if name == GUEST_ACCOUNT.username { if name == GUEST_ACCOUNT.username {
let source_login_data = GUEST_ACCOUNT.get_login_data(); let source_login_data = GUEST_ACCOUNT.get_login_data();
let destination_login_data = self.destination_server_acct.get_login_data(); let destination_login_data = self.destination_server_acct.get_login_data();
let ticket = generate_ticket_with_string_user_key(
return Ok((
source_login_data.0, source_login_data.0,
generate_ticket(source_login_data, destination_login_data), destination_login_data,
)); );
return Ok((source_login_data.0, ticket.0, ticket.1));
} }
} }
let Ok(pid) = name.parse() else { let Ok(pid) = name.parse() else {