fix: SEC16

This commit is contained in:
timedout committed 2026-06-20 16:00:39 +01:00
1 parent ab64662857
commit ec57159b86
3 files changed
+6 -2

No files matched your search

+1
View File
@@ -339,6 +339,7 @@ impl Service {
/// Find out which user an access token belongs to.
pub async fn find_from_token(&self, token: &str) -> Result<(OwnedUserId, OwnedDeviceId)> {
assert!(!token.is_empty(), "Empty access token");
self.db.token_userdeviceid.get(token).await.deserialized()
}