Skip to content

Commit

Permalink
Merge pull request #13 from rickwest/redirect_on_registration
Browse files Browse the repository at this point in the history
On registration, redirect straight to login page to ensure flash mess…
  • Loading branch information
mpociot authored Jun 4, 2018
2 parents 5beb4ff + 8edefba commit 543850e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/RegistersUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function register(Request $request)
$this->sendConfirmationToUser($user);

return $this->registered($request, $user)
?: redirect($this->redirectPath())->with('confirmation', __('confirmation::confirmation.confirmation_info'));
?: redirect(route('login'))->with('confirmation', __('confirmation::confirmation.confirmation_info'));
}

/**
Expand Down

0 comments on commit 543850e

Please sign in to comment.