diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 682026c..749782b 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -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'); } diff --git a/app/Mail/ChangeEmail.php b/app/Mail/ChangeEmail.php index d190a4d..20a3687 100644 --- a/app/Mail/ChangeEmail.php +++ b/app/Mail/ChangeEmail.php @@ -33,7 +33,6 @@ class ChangeEmail extends Mailable public function build() { $this->view('change-email'); - $this->from('donotreply@trendplays.com'); $this->subject('Email change requested'); return $this; } diff --git a/app/Mail/SupportTicket.php b/app/Mail/SupportTicket.php index 593ab3f..4d52988 100644 --- a/app/Mail/SupportTicket.php +++ b/app/Mail/SupportTicket.php @@ -42,7 +42,6 @@ class SupportTicket extends Mailable public function build() { $this->view('support-ticket'); - $this->from('donotreply@trendplays.com'); $this->subject("Ticket: $this->id, $this->type"); $this->replyTo($this->email); return $this; diff --git a/config/mail.php b/config/mail.php index 8f76d63..5201bb7 100644 --- a/config/mail.php +++ b/config/mail.php @@ -42,7 +42,6 @@ return [ 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), 'timeout' => null, - 'auth_mode' => env('MAIL_AUTH_MODE'), ], 'ses' => [ diff --git a/resources/views/change-email.blade.php b/resources/views/change-email.blade.php index cd8f173..b08f273 100644 --- a/resources/views/change-email.blade.php +++ b/resources/views/change-email.blade.php @@ -1,23 +1,17 @@ -@extends('master') - -@section('title', 'Change Email') - -@section('head-metas') - @parent - - -@endsection - @section('content') @parent - + An email change has been requested from {{$current_email}} - Confirm + + Confirm + - If you do not recognize this activity, please disregard this - message. + + If you do not recognize this activity, please disregard this + message. + @endsection