|
|
@@ -123,7 +123,6 @@ class UserController extends Controller |
|
|
|
} |
|
|
|
|
|
|
|
public function resetEmail(Request $request) { |
|
|
|
Stripe::setApiKey(config('services.stripe.secret')); |
|
|
|
|
|
|
|
if (! $request->hasValidSignature()) { |
|
|
|
abort(401); |
|
|
@@ -140,7 +139,6 @@ class UserController extends Controller |
|
|
|
$user = User::find($request->user); |
|
|
|
$user->email = $request->email; |
|
|
|
$user->save(); |
|
|
|
Customer::update($user->customer_id, ['name' => $request->email]); |
|
|
|
|
|
|
|
return view('email-changed'); |
|
|
|
} |
|
|
|