src/Auth.php
public function login($email, $password, $rememberDuration = null, callable $onBeforeSuccess = null) {
		$this->throttle([ 'attemptToLogin', 'email', $email ], 500, (60 * 60 * 24), null, true);

		$this->authenticateUserInternal($password, $email, null, $rememberDuration, $onBeforeSuccess);
	}
public function login($email, $password, $rememberDuration = null, callable $onBeforeSuccess = null) {
		$this->throttle([ 'attemptToLogin', 'email', $email ], 500, (60 * 60 * 24), null, true);

		$this->authenticateUserInternal($password, $email, null, $rememberDuration, $onBeforeSuccess);
	}
public function login ( $ email , $ password , $ rememberDuration = null , callable $ onBeforeSuccess = null ) { $ this -> throttle ( [ 'attemptToLogin' , 'email' , $ email ] , 500 , ( 60 * 60 * 24 ) , null , true ) ; $ this -> authenticateUserInternal ( $ password , $ email , null , $ rememberDuration , $ onBeforeSuccess ) ; }
Attempts to sign in a user with their email address and password

@param string $email the user's email address
@param string $password the user's password
@param int|null $rememberDuration (optional) the duration in seconds to keep the user logged in ("remember me"), e.g. `60 * 60 * 24 * 365.25` for one year
@param callable|null $onBeforeSuccess (optional) a function that receives the user's ID as its single parameter and is executed before successful authentication; must return `true` to proceed or `false` to cancel
@throws InvalidEmailException if the email address was invalid or could not be found
@throws InvalidPasswordException if the password was invalid
@throws EmailNotVerifiedException if the email address has not been verified yet via confirmation email
@throws AttemptCancelledException if the attempt has been cancelled by the supplied callback that is executed before success
@throws TooManyRequestsException if the number of allowed attempts/requests has been exceeded
@throws AuthError if an internal problem occurred (do *not* catch)
Attempts to sign in a user with their email address and password