Heuristic for telling if guest is registered and verified
Compare changes
Files
2- Deaktivert bruker authored
Adds a convenience method, is_verified() -> bool, to the Person model that returns true if the guest has at least one identity verification method associated with them. It is the combination of is_verified() and is_registered() that qualifies a guest for account creation in the IGA. Fixes: GREG-20
+ 50
− 0
@@ -87,6 +87,19 @@ def passport(a_year_ago: datetime) -> PersonIdentity:
@@ -87,6 +87,19 @@ def passport(a_year_ago: datetime) -> PersonIdentity:
@@ -125,3 +138,40 @@ def test_is_registered_completed_in_past(person, a_year_ago):
@@ -125,3 +138,40 @@ def test_is_registered_completed_in_past(person, a_year_ago):