diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php index 822c3c355e..a9c666e8c2 100644 --- a/app/Http/Controllers/Auth/ForgotPasswordController.php +++ b/app/Http/Controllers/Auth/ForgotPasswordController.php @@ -132,8 +132,11 @@ class ForgotPasswordController extends Controller : $this->sendResetLinkFailedResponse($request, $response); } - public function showLinkRequestForm() + public function showLinkRequestForm(Request $request) { - return $this->render('auth.passwords.request', ['root' => 'themes']); + $account_id = $request->get('account_id'); + $account = Account::find($account_id); + + return $this->render('auth.passwords.request', ['root' => 'themes', 'account' => $account]); } } diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index 9625a3dfc7..3650c18664 100644 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -12,6 +12,7 @@ namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; +use App\Models\Account; use Illuminate\Foundation\Auth\ResetsPasswords; use Illuminate\Http\JsonResponse; use Illuminate\Http\RedirectResponse; @@ -52,7 +53,10 @@ class ResetPasswordController extends Controller public function showResetForm(Request $request, $token = null) { - return $this->render('auth.passwords.reset', ['root' => 'themes', 'token' => $token]); + $account_id = $request->get('account_id'); + $account = Account::find($account_id); + + return $this->render('auth.passwords.reset', ['root' => 'themes', 'token' => $token, 'account' => $account]); } /** diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index 17169b85b1..dd5d8346f1 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -486,7 +486,8 @@ class SubscriptionService /** * Handle a plan change where no payment is required * - * @param array $data + * @param array $data + * @deprecated - no usage found */ public function handlePlanChangeNoPayment($data) { @@ -655,7 +656,7 @@ class SubscriptionService $status = $response->getStatusCode(); //$response_body = $response->getReasonPhrase(); - $body = array_merge($body, ['status' => $status, 'response_body' => $response_body]); + //$body = array_merge($body, ['status' => $status, 'response_body' => $response_body]); } diff --git a/routes/web.php b/routes/web.php index af15b87590..5a7b556ecd 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,9 +15,9 @@ Route::post('setup/check_db', 'SetupController@checkDB')->middleware('guest'); Route::post('setup/check_mail', 'SetupController@checkMail')->middleware('guest'); Route::post('setup/check_pdf', 'SetupController@checkPdf')->middleware('guest'); -Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request'); +Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->middleware('domain_db')->name('password.request'); Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email'); -Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->middleware('email_db')->name('password.reset'); +Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->middleware(['domain_db','email_db'])->name('password.reset'); Route::post('password/reset', 'Auth\ResetPasswordController@reset')->middleware('email_db')->name('password.update'); /*