Update authentication endpoint for subdirectory

Fixes bug where user is unable to log into admin when subdirectory is specified
Merge pull request #3730 from jyek/auth-route

Update authentication endpoint for subdirectory