1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Redirect users back to where they added an SSH Key

Summary: Ref T12964. This feels like a cheat, but works well. Just redirect the user back to the form they came from instead of to the key page.

Test Plan: Add a key to a user profile, add a key to an Alamanac device. Grep for PhabricatorAuthSSHKeyTableView and check all locations.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T12964

Differential Revision: https://secure.phabricator.com/D18445
This commit is contained in:
Chad Little 2017-08-18 09:19:31 -07:00
parent a145d00be6
commit 39d19c33ec

View file

@ -93,7 +93,7 @@ final class PhabricatorAuthSSHKeyEditController
try {
$editor->applyTransactions($key, $xactions);
return id(new AphrontRedirectResponse())->setURI($key->getURI());
return id(new AphrontRedirectResponse())->setURI($cancel_uri);
} catch (PhabricatorApplicationTransactionValidationException $ex) {
$validation_exception = $ex;
$e_name = $ex->getShortMessage($type_name);