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:
@@ -139,7 +139,10 @@ final class PhabricatorAuthOneTimeLoginController
|
|||||||
->save();
|
->save();
|
||||||
unset($unguarded);
|
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(
|
->setQueryParams(
|
||||||
array(
|
array(
|
||||||
'key' => $key,
|
'key' => $key,
|
||||||
|
|||||||
Reference in New Issue
Block a user