diff --git a/security/guard_authentication.rst b/security/guard_authentication.rst index 205c52b286e..9be2b11840a 100644 --- a/security/guard_authentication.rst +++ b/security/guard_authentication.rst @@ -296,7 +296,7 @@ Each authenticator needs the following methods: If ``getUser()`` returns a User object, this method is called. Your job is to verify if the credentials are correct. For a login form, this is where you would check that the password is correct for the user. To pass authentication, return - ``true``. If you return *anything* else + ``true``. If you return ``false`` (or throw an :ref:`AuthenticationException `), authentication will fail.