Skip to content

Commit

Permalink
Use username method to ConfirmPassword (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayan-blutui authored Nov 1, 2022
1 parent 6153b67 commit e3141e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Actions/ConfirmPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ConfirmPassword
*/
public function __invoke(StatefulGuard $guard, $user, ?string $password = null)
{
$username = config('fortify.username');
$username = Fortify::username();

return is_null(Fortify::$confirmPasswordsUsingCallback) ? $guard->validate([
$username => $user->{$username},
Expand Down

0 comments on commit e3141e4

Please sign in to comment.