Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15406653
D14275.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14275.diff
View Options
diff --git a/src/workflow/ArcanistInstallCertificateWorkflow.php b/src/workflow/ArcanistInstallCertificateWorkflow.php
--- a/src/workflow/ArcanistInstallCertificateWorkflow.php
+++ b/src/workflow/ArcanistInstallCertificateWorkflow.php
@@ -116,13 +116,15 @@
$token));
}
- if (strncmp($token, 'cli-', 4) !== 0) {
- throw new ArcanistUsageException(
- pht(
- 'The token "%s" is not formatted correctly. Valid API tokens '.
- 'should begin "cli-" and be 32 characters long. Make sure you '.
- 'visited the correct URI and copy/pasted the token correctly.',
- $token));
+ if (strncmp($token, 'cli-', 4) !== 0 &&
+ strncmp($token, 'api-', 4) !== 0) {
+ throw new ArcanistUsageException(
+ pht(
+ 'The token "%s" is not formatted correctly. Valid API tokens '.
+ 'should begin "cli-" or "api-" and be 32 characters long. '.
+ 'Make sure you visited the correct URI and copy/pasted the '.
+ 'token correctly.',
+ $token));
}
$conduit->setConduitToken($token);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 19, 1:09 PM (6 d, 23 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7631886
Default Alt Text
D14275.diff (1 KB)
Attached To
Mode
D14275: Allow API tokens to be added to arcrc
Attached
Detach File
Event Timeline
Log In to Comment