Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

Commit

Permalink
Fix closure use in password reset email
Browse files Browse the repository at this point in the history
  • Loading branch information
TheReverend403 committed Jul 4, 2016
1 parent 9b6010a commit ebe73b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function postRegister(Request $request)
$requestRoute = route('admin.requests');
$mailData['requestRoute'] = $requestRoute;
}

Mail::queue(['text' => 'emails.admin.new_registration'], $mailData, function (Message $message) use ($data) {
$message->subject('New User Registration');
$message->to(config('upste.owner_email'));
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/PasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function sendResetLinkEmail(Request $request)
$broker = $this->getBroker();

$passwordRoute = route('account.password.email');
view()->composer('emails.user.password_reset', function($view) {
view()->composer('emails.user.password_reset', function($view) use ($passwordRoute) {
$view->with(compact('passwordRoute'));
});

Expand Down
2 changes: 1 addition & 1 deletion resources/views/emails/admin/new_registration.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ $user->name }} ({{ $user->email }}) has just registered at {{ config('upste.site_name') }}
{{ $user->name }} ({{ $user->email }}) has just registered at {{ config('upste.site_name') }}.
@if (config('upste.require_user_approval'))

Check pending requests at {{ $requestRoute }}
Expand Down

0 comments on commit ebe73b7

Please sign in to comment.