From c6213a6081f70f3671c52d27da27448a0f2d73b9 Mon Sep 17 00:00:00 2001 From: Marco Date: Thu, 16 Feb 2017 08:15:48 +0100 Subject: [PATCH] Change order of parameters in 'authenticateUserInternal' --- src/Auth.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Auth.php b/src/Auth.php index 341842b..65d5f61 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -265,7 +265,7 @@ class Auth { * @throws AuthError if an internal problem occurred (do *not* catch) */ public function login($email, $password, $rememberDuration = null) { - $this->authenticateUserInternal($email, $password, $rememberDuration); + $this->authenticateUserInternal($password, $email, $rememberDuration); } /** @@ -761,15 +761,15 @@ class Auth { /** * Authenticates an existing user * - * @param string $email the user's email address * @param string $password the user's password + * @param string $email the user's email address * @param int|bool|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 * @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 AuthError if an internal problem occurred (do *not* catch) */ - private function authenticateUserInternal($email, $password, $rememberDuration = null) { + private function authenticateUserInternal($password, $email, $rememberDuration = null) { $email = self::validateEmailAddress($email); $password = self::validatePassword($password);