Replies: 1 comment 1 reply
-
Did you try the suggestions listed in: https://flask-security-too.readthedocs.io/en/stable/customizing.html#overriding-messages |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Before flask_security_too 5.4.0, I used the:
SECURITY_MSG_LOGIN = ('', '')
in order to disable this single flash message.
After upgrading to 5.4.3, the
SECURITY_MSG_LOGIN
was changed toSECURITY_MSG_UNAUTHENTICATED
.Unfortunately, if I do:
SECURITY_MSG_UNAUTHENTICATED = ('', '')
the flash message isn't disabled, but instead shows:
which is probably because the .po file at its beginning includes:
and the empty string is substituted with the rest of the text. The .po file is inline with the intended one according to Babel documentation.
Is there any simple way to overcome it? I just need to get rid of a
SECURITY_MSG_UNAUTHENTICATED
but not the rest.Beta Was this translation helpful? Give feedback.
All reactions