Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored and bert-w committed Apr 29, 2021
1 parent 78fd49f commit 2dd9fda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Illuminate/Auth/SessionGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ public function attemptWith(array $credentials = [], $remember = false, $callbac

$this->lastAttempted = $user = $this->provider->retrieveByCredentials($credentials);

// This method does the exact same thing as Attempt, but also executes callbacks after
// the user is retrieved and validated. If one of the callbacks returns falsy, we
// won't login this user. Instead, we will fail this authentication attempt.
// This method does the exact same thing as attempt, but also executes callbacks after
// the user is retrieved and validated. If one of the callbacks returns falsy we do
// not login the user. Instead, we will fail the specific authentication attempt.
if ($this->hasValidCredentials($user, $credentials) && $this->shouldLogin($callbacks, $user)) {
$this->login($user, $remember);

Expand Down Expand Up @@ -422,7 +422,7 @@ protected function hasValidCredentials($user, $credentials)
}

/**
* Checks if the user should login by executing the given callbacks.
* Determine if the user should login by executing the given callbacks.
*
* @param array|callable|null $callbacks
* @param \Illuminate\Contracts\Auth\Authenticatable $user
Expand Down

0 comments on commit 2dd9fda

Please sign in to comment.