|
|
@@ -25,7 +25,7 @@ class UserController extends Controller |
|
|
|
'password' => 'required|confirmed|min:8|regex:/[a-z]/|regex:/[A-Z]/|regex:/[0-9]/' |
|
|
|
]); |
|
|
|
|
|
|
|
Stripe::setApiKey(env('STRIPE_SECRET')); |
|
|
|
Stripe::setApiKey(config('services.stripe.secret')); |
|
|
|
|
|
|
|
$user = new User; |
|
|
|
$user->name = $request->name; |
|
|
@@ -100,7 +100,7 @@ class UserController extends Controller |
|
|
|
$validated = $request->validate([ |
|
|
|
'name' => 'required|max:30' |
|
|
|
]); |
|
|
|
Stripe::setApiKey(env('STRIPE_SECRET')); |
|
|
|
Stripe::setApiKey(config('services.stripe.secret')); |
|
|
|
$user = Auth::user(); |
|
|
|
$user->name = $request->name; |
|
|
|
Customer::update($user->customer_id, ['name' => $request->name]); |
|
|
@@ -122,7 +122,7 @@ class UserController extends Controller |
|
|
|
} |
|
|
|
|
|
|
|
public function resetEmail(Request $request) { |
|
|
|
Stripe::setApiKey(env('STRIPE_SECRET')); |
|
|
|
Stripe::setApiKey(config('services.stripe.secret')); |
|
|
|
|
|
|
|
if (! $request->hasValidSignature()) { |
|
|
|
abort(401); |
|
|
|