diff --git a/src/server/session/join.rs b/src/server/session/join.rs index b208cf0..a5e1c06 100644 --- a/src/server/session/join.rs +++ b/src/server/session/join.rs @@ -45,12 +45,12 @@ pub async fn join(mut req: Request) -> Result { let Some(profile) = token.account.selected_profile.to_owned() else { // No selected profile - return Err(YggdrasilError::new_unauthorized("Invalid token.").into()) + return Err(YggdrasilError::new_base("Account has no profile.").into()) }; if body.profile_uuid != profile.uuid { // UUID doesn't match - return Err(YggdrasilError::new_unauthorized("Invalid token.").into()) + return Err(YggdrasilError::new_base("UUID doesn't match.").into()) } Session::create(req.state(), &profile, body.server_id, req.remote().unwrap().to_string()).await?;