diff options
author | Robin Appelman <robin@icewind.nl> | 2018-06-19 17:02:20 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-06-21 15:18:07 +0200 |
commit | 8ed50d4b63b4e6f8073fe631721405eeedc45190 (patch) | |
tree | 2551c4920fe80e33bc383ae05bf1eb8d7ea84759 /core/Controller/LostController.php | |
parent | a10690c1e9cb3a4b2c84f97e53b798640aae5101 (diff) | |
download | nextcloud-server-8ed50d4b63b4e6f8073fe631721405eeedc45190.tar.gz nextcloud-server-8ed50d4b63b4e6f8073fe631721405eeedc45190.zip |
prefill userid for login after password reset
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core/Controller/LostController.php')
-rw-r--r-- | core/Controller/LostController.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php index f45de3653ea..d0ed432f03f 100644 --- a/core/Controller/LostController.php +++ b/core/Controller/LostController.php @@ -206,10 +206,11 @@ class LostController extends Controller { } /** + * @param array $data * @return array */ - private function success() { - return array('status'=>'success'); + private function success($data = []) { + return array_merge($data, ['status'=>'success']); } /** @@ -282,7 +283,7 @@ class LostController extends Controller { return $this->error($e->getMessage()); } - return $this->success(); + return $this->success(['user' => $userId]); } /** |