Page MenuHomePhabricator

D13558.diff
No OneTemporary

D13558.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
Wed, Nov 20, 9:14 AM (21 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2543888
Default Alt Text
D13558.diff (558 B)

Event Timeline