CakeDC / users

Users Plugin for CakePHP
https://www.cakedc.com
Other
520 stars 296 forks source link

add config option to include Unauthorized Url in returned Flash Message #1009

Closed ACampanario closed 10 months ago

ACampanario commented 1 year ago

If param addUnauthorizedUrlinFlashMessage is true instead of return flash message as

"You are not authorized to access that location."

is returned as

"You are not authorized to access that location.Location = http://localhost:8079/webfonts/fa-solid-900.woff"

Case of Use: when debug is false and js or css files are required by third sources and not are in webroot directory

ajibarra commented 1 year ago

@ACampanario I would not add another configuration but use debug instead. Additionally, please ensure tests are passing

@steinkel please take a look let us know your thoughts