@@ -123,7 +123,6 @@ class UserController extends Controller | |||||
} | } | ||||
public function resetEmail(Request $request) { | public function resetEmail(Request $request) { | ||||
Stripe::setApiKey(config('services.stripe.secret')); | |||||
if (! $request->hasValidSignature()) { | if (! $request->hasValidSignature()) { | ||||
abort(401); | abort(401); | ||||
@@ -140,7 +139,6 @@ class UserController extends Controller | |||||
$user = User::find($request->user); | $user = User::find($request->user); | ||||
$user->email = $request->email; | $user->email = $request->email; | ||||
$user->save(); | $user->save(); | ||||
Customer::update($user->customer_id, ['name' => $request->email]); | |||||
return view('email-changed'); | return view('email-changed'); | ||||
} | } | ||||
@@ -33,7 +33,6 @@ class ChangeEmail extends Mailable | |||||
public function build() | public function build() | ||||
{ | { | ||||
$this->view('change-email'); | $this->view('change-email'); | ||||
$this->from('donotreply@trendplays.com'); | |||||
$this->subject('Email change requested'); | $this->subject('Email change requested'); | ||||
return $this; | return $this; | ||||
} | } | ||||
@@ -42,7 +42,6 @@ class SupportTicket extends Mailable | |||||
public function build() | public function build() | ||||
{ | { | ||||
$this->view('support-ticket'); | $this->view('support-ticket'); | ||||
$this->from('donotreply@trendplays.com'); | |||||
$this->subject("Ticket: $this->id, $this->type"); | $this->subject("Ticket: $this->id, $this->type"); | ||||
$this->replyTo($this->email); | $this->replyTo($this->email); | ||||
return $this; | return $this; | ||||
@@ -42,7 +42,6 @@ return [ | |||||
'username' => env('MAIL_USERNAME'), | 'username' => env('MAIL_USERNAME'), | ||||
'password' => env('MAIL_PASSWORD'), | 'password' => env('MAIL_PASSWORD'), | ||||
'timeout' => null, | 'timeout' => null, | ||||
'auth_mode' => env('MAIL_AUTH_MODE'), | |||||
], | ], | ||||
'ses' => [ | 'ses' => [ | ||||
@@ -1,23 +1,17 @@ | |||||
@extends('master') | |||||
@section('title', 'Change Email') | |||||
@section('head-metas') | |||||
@parent | |||||
<link rel="stylesheet" href="/css/app.css"> | |||||
<link rel="stylesheet" href="/css/panel.css"> | |||||
@endsection | |||||
@section('content') | @section('content') | ||||
@parent | @parent | ||||
<main id="ticket-email"> | <main class="body" id="ticket-email"> | ||||
<h3>An email change has been requested from {{$current_email}}</h3> | <h3>An email change has been requested from {{$current_email}}</h3> | ||||
<a href="{{$link}}"><button>Confirm</button></a> | <div> | ||||
<a href="{{$link}}"><h4>Confirm</h4></a> | |||||
</div> | |||||
<small>If you do not recognize this activity, please disregard this | <div> | ||||
message.</small> | <small>If you do not recognize this activity, please disregard this | ||||
message.</small> | |||||
</div> | |||||
</main> | </main> | ||||
@endsection | @endsection | ||||