Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Laravel-Backpack/Base int…
Browse files Browse the repository at this point in the history
…o laravel-6
  • Loading branch information
tabacitu committed Sep 4, 2019
2 parents 9966001 + 023bd0b commit be42ff9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip

-------

## [1.1.8] - 2019-09-01

### Fixed
- fixes #401 - Register event now triggered when registering;


## [1.1.7] - 2019-08-11

### Fixed
Expand Down
6 changes: 5 additions & 1 deletion src/app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Backpack\Base\app\Http\Controllers\Auth;

use Backpack\Base\app\Http\Controllers\Controller;
use Illuminate\Auth\Events\Registered;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Http\Request;
use Validator;
Expand Down Expand Up @@ -112,7 +113,10 @@ public function register(Request $request)

$this->validator($request->all())->validate();

$this->guard()->login($this->create($request->all()));
$user = $this->create($request->all());

event(new Registered($user));
$this->guard()->login($user);

return redirect($this->redirectPath());
}
Expand Down

0 comments on commit be42ff9

Please sign in to comment.