1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-20 05:42:40 +01:00

Fix 'key'/'type' swap in email reset / one-time-login controller

Summary: Fixes T9046. These got swapped around during refactoring.

Test Plan:
  - Used `bin/auth recover` prior to patch (failed).
  - Used `bin/auth recover` after patch (worked).

Reviewers: joshuaspence, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T9046

Differential Revision: https://secure.phabricator.com/D13778
This commit is contained in:
epriestley 2015-08-03 08:01:43 -07:00
parent f0269d696c
commit b4b5d60f77

View file

@ -10,8 +10,8 @@ final class PhabricatorAuthOneTimeLoginController
public function handleRequest(AphrontRequest $request) { public function handleRequest(AphrontRequest $request) {
$viewer = $this->getViewer(); $viewer = $this->getViewer();
$id = $request->getURIData('id'); $id = $request->getURIData('id');
$link_type = $request->getURIData('key'); $link_type = $request->getURIData('type');
$key = $request->getURIData('type'); $key = $request->getURIData('key');
$email_id = $request->getURIData('emailID'); $email_id = $request->getURIData('emailID');
if ($request->getUser()->isLoggedIn()) { if ($request->getUser()->isLoggedIn()) {