]> khamidou — GitHub mirrors - arcanist.git/commit
Added a warning prompt if the user tries to use an API cert instead of a CLI cert
authorJosh Cox <joshcox@uberatc.com>
Thu, 25 Aug 2016 15:30:01 +0000 (11:30 -0400)
committerJosh Cox <joshcox@uberatc.com>
Thu, 25 Aug 2016 15:34:34 +0000 (11:34 -0400)
commit9e82ef979e8148c43b9b8439025d505b1219e213
treef8481d744f927171c9b78be285724e5398d4e3eb
parent89e8b48523844cc3eff8b775f8fae49e85f8fc22
Added a warning prompt if the user tries to use an API cert instead of a CLI cert

Summary: Fixes T9692. Instead of disallowing API tokens entirely, we're going to just warn the user that they might not want to do that. After that, they can proceed if they want to.

Test Plan:
Run arc install-certificate.
Manually go to `Settings → Conduit API Tokens` in the web UI.
Generate an API token explicitly, which should have the form api-******.
Paste that into the prompt on the CLI.
It will give you a warning prompt then ask if you'd like to proceed anyway (defaults to No).

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T9692

Differential Revision: https://secure.phabricator.com/D16448
src/workflow/ArcanistInstallCertificateWorkflow.php