Page MenuHomePhabricator

D14275.diff
No OneTemporary

D14275.diff

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

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)

Event Timeline