17 lines
362 B
Python
17 lines
362 B
Python
from django import template
|
|
|
|
from wcs.qommon import misc
|
|
from wcs.qommon.templatetags.qommon import unlazy
|
|
|
|
register = template.Library()
|
|
|
|
|
|
@register.filter
|
|
def is_valid_belgian_nrn(value):
|
|
return misc.validate_belgian_nrn(unlazy(value))
|
|
|
|
|
|
@register.filter
|
|
def is_strong_authentication(session_user):
|
|
return bool('_niss' in session_user.verified_fields)
|