Currently, the data type YesodAuthdoes not provide a way to change these routes, so you have two options, as far as I know:
Make a local copy yesod-authand modify it according to your needs (which you know correctly)
Specify the routes you want in config/routes, and the handler for each of them, which will be redirected to the routes yesod-auth:
Config / Routes
/entrar MyauthEntrarR GET
SRC / Handler / Myauth
getMyauthEntrar :: Handler Html
getMyauthEntrar = redirect LoginR
source
share