Fixed required email confirmation with domain restriction

Added test to cover scenario.

Closes #573
This commit is contained in:
Dan Brown
2017-11-11 18:09:48 +00:00
parent 08e58bab79
commit d89440d198
3 changed files with 45 additions and 3 deletions

View File

@ -53,7 +53,7 @@ class RegisterController extends Controller
*/
public function __construct(SocialAuthService $socialAuthService, EmailConfirmationService $emailConfirmationService, UserRepo $userRepo)
{
$this->middleware('guest')->except(['socialCallback', 'detachSocialAccount']);
$this->middleware('guest')->only(['getRegister', 'postRegister', 'socialRegister']);
$this->socialAuthService = $socialAuthService;
$this->emailConfirmationService = $emailConfirmationService;
$this->userRepo = $userRepo;