1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

Fix redirect to Password settings panel after "Reset Password" login

Summary: Fixes T11107. The URI change here meant we were dropping the "key" parameter, which allows you to set a new password without knowing your old one.

Test Plan: Reset password, didn't need to provide old one anymore.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11107

Differential Revision: https://secure.phabricator.com/D16075
This commit is contained in:
epriestley 2016-06-07 14:05:23 -07:00
parent e85b169590
commit abeab59448

View file

@ -139,7 +139,10 @@ final class PhabricatorAuthOneTimeLoginController
->save();
unset($unguarded);
$next = (string)id(new PhutilURI('/settings/panel/password/'))
$username = $target_user->getUsername();
$panel_uri = "/settings/user/{$username}/page/password/";
$next = (string)id(new PhutilURI($panel_uri))
->setQueryParams(
array(
'key' => $key,