view docs/resetpw/wikiconfig-note-snippet.txt @ 6133:a6283e189869 tip

fixup: remove nonexisting passlib.utils._blowfish this was removed by the passlib 1.7.1 upgrade.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 01 Jun 2017 18:10:19 +0200
parents 9a1b9392715e
line wrap: on
line source
    # you can put this into your wiki config, please be careful with
    # indentation, it needs to be in the Config class, indented as all
    # the other config attributes.
    # it will display a red box above your wiki theme then, notifying
    # not-logged-in users of the password invalidation, point them to
    # the information page on the MoinMoin project wiki.

    def important_note(self, request):
        html = ""
        if not request.user.valid:
            url = ""
            reason = """
<u>Please note:</u>
All passwords were invalidated, you need to do a password recovery once
to define a NEW and DIFFERENT password.
For more information, please <a href="%(url)s">see there</a>.
""" % locals()
            html = """
<div style="border:red; border-style:dotted; padding:0.5em; background-color:#FFCCCC;">
""" % locals()
        return html

    page_header1 = important_note