Flask-Middleware / flask-security

Quick and simple security for Flask applications
MIT License
622 stars 154 forks source link

add comment about back compatibility of template #969 #970

Closed cootook closed 2 months ago

cootook commented 2 months ago

related to issue #969

Common way to overwrite templates is

Create a template with the same name for the template you wish to override

While using Flask-Security <5.4 copying code of the template /_menu.html from Flask-security repo will lead to error

_fs_is_user_authenticated is undefined

I figured out that _fs_is_user_authenticated was added to the template on commit

Those changes related to a new way of handling non-authenticated users

There should be a note/comment in the template _menu.html about its compatibility with previous versions.

This PR has now impact on code.

@jwag956 appreciate