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:
parent
e85b169590
commit
abeab59448
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue