Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15414704
D19516.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
819 B
Referenced Files
None
Subscribers
None
D19516.id.diff
View Options
diff --git a/src/applications/conduit/controller/PhabricatorConduitAPIController.php b/src/applications/conduit/controller/PhabricatorConduitAPIController.php
--- a/src/applications/conduit/controller/PhabricatorConduitAPIController.php
+++ b/src/applications/conduit/controller/PhabricatorConduitAPIController.php
@@ -211,9 +211,14 @@
->withIsActive(true)
->executeOne();
if (!$stored_key) {
+ $key_summary = id(new PhutilUTF8StringTruncator())
+ ->setMaximumBytes(64)
+ ->truncateString($raw_key);
return array(
'ERR-INVALID-AUTH',
- pht('No user or device is associated with that public key.'),
+ pht(
+ 'No user or device is associated with the public key "%s".',
+ $key_summary),
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 2:02 AM (1 d, 12 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7551174
Default Alt Text
D19516.id.diff (819 B)
Attached To
Mode
D19516: Make the Conduit auth error for an unrecognized public key a little more useful
Attached
Detach File
Event Timeline
Log In to Comment