annotate 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
children
rev   line source
5962
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
1 # you can put this into your wiki config, please be careful with
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
2 # indentation, it needs to be in the Config class, indented as all
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
3 # the other config attributes.
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
4 # it will display a red box above your wiki theme then, notifying
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
5 # not-logged-in users of the password invalidation, point them to
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
6 # the information page on the MoinMoin project wiki.
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
7
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
8 def important_note(self, request):
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
9 html = ""
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
10 if not request.user.valid:
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
11 url = "http://moinmo.in/PasswordReset"
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
12 reason = """
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
13 <u>Please note:</u>
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
14 All passwords were invalidated, you need to do a password recovery once
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
15 to define a NEW and DIFFERENT password.
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
16 For more information, please <a href="%(url)s">see there</a>.
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
17 """ % locals()
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
18 html = """
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
19 <div style="border:red; border-style:dotted; padding:0.5em; background-color:#FFCCCC;">
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
20 %(reason)s
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
21 </div>
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
22 """ % locals()
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
23 return html
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
24
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
25 page_header1 = important_note
9a1b9392715e added snippet for config to show a notification box above the theme output
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
26