Skip to content

Commit

Permalink
Implement new Laravel 11 method
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Mar 13, 2024
1 parent 3a7108b commit 34bcf9f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Auth/DatabaseUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,12 @@ public function validateCredentials(Authenticatable $user, array $credentials):

return true;
}

/**
* {@inheritdoc}
*/
public function rehashPasswordIfRequired(Authenticatable $user, array $credentials, bool $force = false): void
{
$this->eloquent->rehashPasswordIfRequired($user, $credentials, $force);
}
}
8 changes: 8 additions & 0 deletions src/Auth/NoDatabaseUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,12 @@ public function validateCredentials(Authenticatable $user, array $credentials):

return true;
}

/**
* {@inheritdoc}
*/
public function rehashPasswordIfRequired(Authenticatable $user, array $credentials, bool $force = false)
{
// We can't rehash LDAP users passwords.
}
}

0 comments on commit 34bcf9f

Please sign in to comment.