Update authentication endpoint for subdirectory

Fixes bug where user is unable to log into admin when subdirectory is specified