Fixed bug in writing new tokens

This commit is contained in:
2024-10-12 11:27:59 -04:00
Unverified
parent 4e6250d1d9
commit dec87371ec

View File

@@ -285,7 +285,13 @@ impl RealmAuth for RealmAuthServer {
match result { match result {
Ok(row) => { Ok(row) => {
let token_long: &str = &row.tokens.unwrap(); let token_long: &str = &row.tokens.unwrap();
let mut tokens = token_long.split(',').collect::<Vec<&str>>(); let mut tokens: Vec<&str> = {
if token_long.eq("") {
Vec::new()
} else {
token_long.split(',').collect::<Vec<&str>>()
}
};
tokens.push(&token); tokens.push(&token);
let mega_token = tokens.join(","); let mega_token = tokens.join(",");