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:
parent
a145d00be6
commit
39d19c33ec
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue