Manual:Hooks/UserLoadFromSession

Details

 * $user: user object being loaded
 * &$result: set this to a boolean value to abort the normal authentification process

This hook replaces AutoAuthenticate, which has been removed in 1.13.

An extension can use this hook to fill in the data of the User object $user from an external session. This is typically used in Authentication extensions.

When the authentication should continue undisturbed after the hook was executed, do not touch $result. When the normal authentication should not happen (e.g. because $user is completely initialized), set $result to any boolean value.

In any case, return.