Move earlier in the stack the methods used to authenticate with local accounts
Without this change, too much of the requests had gone through before the
methods checking if the user is authenticated were called and thus a number
of actions requiring the user to be authenticated were not available.
Fixes https://pagure.io/pagure/issue/3290
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>