infrastructure/Auth/LoginProxy.php
/**
	 * Attempt to create an access token using user credentials
	 *
	 * @param string $email
	 * @param string $password
	 * @return array
	 */
Attempt to create an access token using user credentials
@param string $email
@param string $password
@return array
Attempt to create an access token using user credentials @param string $email @param string $password @return array
public function attemptLogin($email, $password)
	{
		$user = $this->userRepository->findWhere(['email' => $email])->first(); 
		if (!is_null($user)) {
			return $this->proxy('password', [
				'username' => $email,
				'password' => $password
			]);
		}
		throw new InvalidCredentialsException();
	}
public function attemptLogin ( $ email , $ password ) { $ user = $ this -> userRepository -> findWhere ( [ 'email' => $ email ] ) -> first ( ) ; if ( ! is_null ( $ user ) ) { return $ this -> proxy ( 'password' , [ 'username' => $ email , 'password' => $ password ] ) ; } throw new InvalidCredentialsException ( ) ; }
Attempt to create an access token using user credentials
 @param string $email
 @param string $password
 @return array
Attempt to create an access token using user credentials @param string $email @param string $password @return array
// TODO: do we need first?
