diff --git a/auth/src/server.rs b/auth/src/server.rs index 7432aae..4ffc212 100644 --- a/auth/src/server.rs +++ b/auth/src/server.rs @@ -285,7 +285,13 @@ impl RealmAuth for RealmAuthServer { match result { Ok(row) => { let token_long: &str = &row.tokens.unwrap(); - let mut tokens = token_long.split(',').collect::>(); + let mut tokens: Vec<&str> = { + if token_long.eq("") { + Vec::new() + } else { + token_long.split(',').collect::>() + } + }; tokens.push(&token); let mega_token = tokens.join(",");