Redact login token
parent
0cd9f661c7
commit
8e3726eba4
@ -0,0 +1,9 @@
|
|||||||
|
from django import template
|
||||||
|
from re import ASCII, sub
|
||||||
|
|
||||||
|
register = template.Library()
|
||||||
|
|
||||||
|
|
||||||
|
@register.filter(name="striplogintoken")
|
||||||
|
def strip_login_token(value):
|
||||||
|
return sub(r'https://helfen\.kntkt\.de/l/[-\w]+', '(zurückbehalten)', value, flags=ASCII)
|
Loading…
Reference in New Issue