add templatetag library
This commit is contained in:
parent
c2bc8ac00c
commit
114a7f2e8f
|
@ -0,0 +1,16 @@
|
|||
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)
|
Loading…
Reference in New Issue