Page MenuHomePhabricator

D13558.id44757.diff
No OneTemporary

D13558.id44757.diff

diff --git a/services/identity/src/database/token.rs b/services/identity/src/database/token.rs
--- a/services/identity/src/database/token.rs
+++ b/services/identity/src/database/token.rs
@@ -87,6 +87,13 @@
signing_public_key: String,
access_token_to_verify: String,
) -> Result<bool, Error> {
+ if user_id.is_empty()
+ || signing_public_key.is_empty()
+ || access_token_to_verify.is_empty()
+ {
+ return Ok(false);
+ }
+
let is_valid = self
.get_access_token_data(user_id, signing_public_key)
.await?

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 9:45 PM (18 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2692714
Default Alt Text
D13558.id44757.diff (558 B)

Event Timeline