Skip to content

Commit

Permalink
[6.x] Alleviate breaking change introduced by password confirm feature (
Browse files Browse the repository at this point in the history
#30389)

* Set a sensible default for password confirmation

* Update Router.php
  • Loading branch information
netpok authored and taylorotwell committed Oct 23, 2019
1 parent 51e0b1d commit 4d2d79a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/Routing/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,8 @@ public function auth(array $options = [])
}

// Password Confirmation Routes...
if ($options['confirm'] ?? true) {
if ($options['confirm'] ??
class_exists($this->prependGroupNamespace('Auth\ConfirmPasswordController'))) {
$this->confirmPassword();
}

Expand Down

0 comments on commit 4d2d79a

Please sign in to comment.